stable/hyperopt-mongodb-note.md

50 lines
1.4 KiB
Markdown
Raw Normal View History

2018-03-23 22:55:15 +00:00
Basically, to sum things up:
2018-03-23 04:05:37 +00:00
2018-03-24 01:59:26 +00:00
The locations of your hyperopt directories may vary. Some reside in .local.
2018-03-23 22:55:15 +00:00
Make these changes per this PR in these files:
2018-03-24 01:36:40 +00:00
2018-03-23 22:55:15 +00:00
https://github.com/hyperopt/hyperopt/pull/287/files
2018-03-23 04:05:37 +00:00
2018-03-23 22:55:15 +00:00
/usr/local/lib/python3.6/dist-packages/hyperopt/fmin.py
2018-03-24 01:36:40 +00:00
2018-03-23 22:55:15 +00:00
removetrial['state'] == base.JOB_STATE_RUNNING
2018-03-24 01:36:40 +00:00
2018-03-23 22:55:15 +00:00
addtrial['state'] = base.JOB_STATE_RUNNING
Make these changes per this PR into the hyperopt files:
2018-03-24 01:36:40 +00:00
2018-03-23 22:55:15 +00:00
https://github.com/hyperopt/hyperopt/pull/288/files
remove:import six.moves.cPickle as pickle
2018-03-24 01:36:40 +00:00
2018-03-23 22:55:15 +00:00
add: import dill as pickle in the following files:
2018-03-23 04:05:37 +00:00
/usr/local/lib/python3.6/dist-packages/hyperopt/fmin.py
2018-03-23 23:10:40 +00:00
2018-03-23 22:55:15 +00:00
/usr/local/lib/python3.6/dist-packages/hyperopt/main.py
2018-03-23 23:10:40 +00:00
2018-03-23 22:55:15 +00:00
/usr/local/lib/python3.6/dist-packages/hyperopt/mongoexp.py
2018-03-23 23:10:40 +00:00
2018-03-23 22:55:15 +00:00
/usr/local/lib/python3.6/dist-packages/hyperopt/utils.py
Install dill:
2018-03-24 01:36:40 +00:00
2018-03-23 22:55:15 +00:00
pip3.6 install dill
2018-03-24 01:59:26 +00:00
replace freqtrade/optimize/hyperopt.py with the hyperopt-mongodb.py in the freqtrade root.
Management tool for mongodb:
2018-03-23 22:55:15 +00:00
2018-03-24 01:59:26 +00:00
https://robomongo.org/download
2018-03-23 22:55:15 +00:00
2018-03-24 01:59:26 +00:00
Then, run the scipts. 5000 epochs can take a few hours even on a high-end machine. You can use the mongodb took above to check the progress on the local machine.
2018-03-23 22:55:15 +00:00
2018-03-24 01:59:26 +00:00
Lastly, read the test_strategy.py file located in user_data/strategy/test_strategy.py
2018-03-23 04:05:37 +00:00
2018-03-24 01:59:26 +00:00
Once you've done that, run scripts. You can restart the worker and the freqtrader hyperopt process but I do not advise it. Monitor the output with mongodb.
2018-03-24 01:36:40 +00:00