Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyperopt SMA strategy leaves empty list #10

Open
l8nit3tr0ubl3 opened this issue Sep 29, 2019 · 0 comments
Open

hyperopt SMA strategy leaves empty list #10

l8nit3tr0ubl3 opened this issue Sep 29, 2019 · 0 comments

Comments

@l8nit3tr0ubl3
Copy link

Hello, I have managed to get this to run on testnet, great work by the way :)
However, when attempting to use the hyperopt option, the optimum settings don't seem to be added to the list, causing a null object and an error. (at least this is my understanding)

Error below:

2019-09-29 13:09:07,389 - INFO - tpe_transform took 0.002560 seconds
2019-09-29 13:09:07,392 - INFO - TPE using 199/199 trials with best loss inf
2019-09-29 13:09:07,507 - INFO - Params : {'fast_len': 3.0, 'slow_len': 22.0}
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 200/200 [00:18<00:00, 10.63it/s, best loss: ?]
Traceback (most recent call last):
  File "main.py", line 22, in <module>
    bot.run()
  File "/home/linux/build/ta-lib/ebisu/src/bot.py", line 109, in run
    self.params_search()
  File "/home/linux/build/ta-lib/ebisu/src/bot.py", line 99, in params_search
    best_params = fmin(objective, self.options(), algo=tpe.suggest, trials=trials, max_evals=200)
  File "/home/linux/.local/lib/python3.6/site-packages/hyperopt/fmin.py", line 388, in fmin
    show_progressbar=show_progressbar,
  File "/home/linux/.local/lib/python3.6/site-packages/hyperopt/base.py", line 639, in fmin
    show_progressbar=show_progressbar)
  File "/home/linux/.local/lib/python3.6/site-packages/hyperopt/fmin.py", line 409, in fmin
    return trials.argmin
  File "/home/linux/.local/lib/python3.6/site-packages/hyperopt/base.py", line 590, in argmin
    best_trial = self.best_trial
  File "/home/linux/.local/lib/python3.6/site-packages/hyperopt/base.py", line 585, in best_trial
    best = np.argmin(losses)
  File "<__array_function__ internals>", line 6, in argmin
  File "/home/linux/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 1222, in argmin
    return _wrapfunc(a, 'argmin', axis=axis, out=out)
  File "/home/linux/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 58, in _wrapfunc
    return _wrapit(obj, method, *args, **kwds)
  File "/home/linux/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 47, in _wrapit
    result = getattr(asarray(obj), method)(*args, **kwds)
ValueError: attempt to get argmin of an empty sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant