print optimizer state in debug log messages

This commit is contained in:
hroff-1902 2019-04-23 09:25:19 +03:00
parent d3e956f7cc
commit 3e3fce5f38

View File

@ -288,6 +288,9 @@ class Hyperopt(Backtesting):
'total_tries': self.total_tries,
'result': f_val[j]['result'],
})
logger.debug(f"Optimizer params: {f_val[j]['params']}")
for j in range(cpus):
logger.debug(f"Opimizer state: Xi: {opt.Xi[-j-1]}, yi: {opt.yi[-j-1]}")
except KeyboardInterrupt:
print('User interrupted..')