Closed OtenMoten closed 4 years ago
Hello community,
if you got this error TypeError: reduce() of empty sequence with no initial value
TypeError: reduce() of empty sequence with no initial value
Here is the workaround:
Go to your custom hyperopt file, in this case BBRSIOPT.py
Change
dataframe.loc[ reduce(lambda x, y: x & y, conditions), 'buy'] = 1
in
if conditions: dataframe.loc[ reduce(lambda x, y: x & y, conditions), 'buy'] = 1
It should work now.
Found here, and here, and also here
Hello community,
if you got this error
TypeError: reduce() of empty sequence with no initial value
Here is the workaround:
Go to your custom hyperopt file, in this case BBRSIOPT.py
Change
in
It should work now.
Found here, and here, and also here