Skip to content

Commit 52af56b

Browse files
committed
modAL.utils.combination make_product genexp bug fixed
1 parent 6333b6e commit 52af56b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modAL/utils/combination.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def make_product(*functions, exponents=None):
7373
'same as the number of given functions'
7474

7575
def product_function(*args, **kwargs):
76-
return np.prod((functions[i](*args, **kwargs)**exponents[i]
77-
for i in range(len(exponents))), axis=0)
76+
return np.prod([functions[i](*args, **kwargs)**exponents[i]
77+
for i in range(len(exponents))], axis=0)
7878

7979
return product_function
8080

0 commit comments

Comments
 (0)