--print-all command line option added for hyperopt

This commit is contained in:
hroff-1902
2019-04-22 01:10:01 +03:00
parent ccc91403c5
commit 6b87d94bb0
3 changed files with 12 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ class Hyperopt(Backtesting):
"""
Log results if it is better than any previous evaluation
"""
if results['loss'] < self.current_best_loss:
if self.config.get('print_all', False) or results['loss'] < self.current_best_loss:
current = results['current_tries']
total = results['total_tries']
res = results['result']