We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6333b6e commit 52af56bCopy full SHA for 52af56b
modAL/utils/combination.py
@@ -73,8 +73,8 @@ def make_product(*functions, exponents=None):
73
'same as the number of given functions'
74
75
def product_function(*args, **kwargs):
76
- return np.prod((functions[i](*args, **kwargs)**exponents[i]
77
- for i in range(len(exponents))), axis=0)
+ return np.prod([functions[i](*args, **kwargs)**exponents[i]
+ for i in range(len(exponents))], axis=0)
78
79
return product_function
80
0 commit comments