np.product --> np.prod

This commit is contained in:
Alejandro Moreo Fernandez 2024-07-02 09:52:00 +02:00
parent c408deacae
commit 781ce82b90
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,7 @@ class EMQ(AggregativeSoftQuantifier):
Px = posterior_probabilities
Ptr = np.copy(tr_prev)
if np.product(Ptr) == 0: # some entry is 0; we should smooth the values to avoid 0 division
if np.prod(Ptr) == 0: # some entry is 0; we should smooth the values to avoid 0 division
Ptr += epsilon
Ptr /= Ptr.sum()