mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 04:03:55 +00:00
Add strategy name to HyperOpt results filename
This just extends the HyperOpt result filename by adding the strategy name. This allows analysis of HyperOpt results folder with no additional necessary context. An alternative idea would be to expand the result dict, but the additional static copies are non value added.
This commit is contained in:
parent
a39e83dbd4
commit
345f7404e9
|
@ -77,8 +77,9 @@ class Hyperopt:
|
||||||
self.custom_hyperoptloss = HyperOptLossResolver.load_hyperoptloss(self.config)
|
self.custom_hyperoptloss = HyperOptLossResolver.load_hyperoptloss(self.config)
|
||||||
self.calculate_loss = self.custom_hyperoptloss.hyperopt_loss_function
|
self.calculate_loss = self.custom_hyperoptloss.hyperopt_loss_function
|
||||||
time_now = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
time_now = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
||||||
|
strategy = str(self.config['strategy'])
|
||||||
self.results_file = (self.config['user_data_dir'] /
|
self.results_file = (self.config['user_data_dir'] /
|
||||||
'hyperopt_results' / f'hyperopt_results_{time_now}.pickle')
|
'hyperopt_results' / f'strategy_{strategy}_' f'hyperopt_results_{time_now}.pickle')
|
||||||
self.data_pickle_file = (self.config['user_data_dir'] /
|
self.data_pickle_file = (self.config['user_data_dir'] /
|
||||||
'hyperopt_results' / 'hyperopt_tickerdata.pkl')
|
'hyperopt_results' / 'hyperopt_tickerdata.pkl')
|
||||||
self.total_epochs = config.get('epochs', 0)
|
self.total_epochs = config.get('epochs', 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user