help default ReinforcementLearner users by assigning the model_type automatically
This commit is contained in:
parent
90f168d1ff
commit
b421521be3
@ -99,10 +99,9 @@ class FreqaiDataDrawer:
|
|||||||
"model_filename": "", "trained_timestamp": 0,
|
"model_filename": "", "trained_timestamp": 0,
|
||||||
"data_path": "", "extras": {}}
|
"data_path": "", "extras": {}}
|
||||||
self.limit_ram_use = self.freqai_info.get('limit_ram_usage', False)
|
self.limit_ram_use = self.freqai_info.get('limit_ram_usage', False)
|
||||||
if 'rl_config' in self.freqai_info:
|
if 'Reinforcement' in self.config['freqaimodel']:
|
||||||
self.model_type = 'stable_baselines'
|
logger.warning('User passed a ReinforcementLearner model, FreqAI will '
|
||||||
logger.warning('User indicated rl_config, FreqAI will now use stable_baselines3'
|
'now use stable_baselines3 to save models.')
|
||||||
' to save models.')
|
|
||||||
else:
|
else:
|
||||||
self.model_type = self.freqai_info.get('model_save_type', 'joblib')
|
self.model_type = self.freqai_info.get('model_save_type', 'joblib')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user