only run four evals of hyperopt, just to check it works

This commit is contained in:
Janne Sinivirta 2017-11-05 09:28:42 +02:00
parent 50a979161c
commit 29b173f4e7

View File

@ -147,7 +147,7 @@ def test_hyperopt(conf, pairs, mocker):
]),
}
trials = Trials()
best = fmin(fn=optimizer, space=space, algo=tpe.suggest, max_evals=40, trials=trials)
best = fmin(fn=optimizer, space=space, algo=tpe.suggest, max_evals=4, trials=trials)
print('\n\n\n\n====================== HYPEROPT BACKTESTING REPORT ================================')
print('Best parameters {}'.format(best))
newlist = sorted(trials.results, key=itemgetter('loss'))