only run four evals of hyperopt, just to check it works
This commit is contained in:
parent
50a979161c
commit
29b173f4e7
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user