shorten log text in hyperopt

This commit is contained in:
Janne Sinivirta 2017-12-24 11:54:09 +02:00
parent cf05b3d277
commit 40f5a62d54

View File

@ -156,8 +156,8 @@ def optimizer(params):
def format_results(results: DataFrame):
return ('Made {:6d} buys. Average profit {: 5.2f}%. '
'Total profit was {: 11.8f} BTC. Average duration {:5.1f} mins.').format(
return ('{:6d} trades. Avg profit {: 5.2f}%. '
'Total profit {: 11.8f} BTC. Avg duration {:5.1f} mins.').format(
len(results.index),
results.profit_percent.mean() * 100.0,
results.profit_BTC.sum(),