mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Update BaseReinforcementLearningModel.py
This commit is contained in:
parent
83343dc2f1
commit
dcf6ebe273
|
@ -39,7 +39,7 @@ class BaseReinforcementLearningModel(IFreqaiModel):
|
|||
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(config=kwargs['config'])
|
||||
self.max_threads = max(self.freqai_info['rl_config'].get(
|
||||
self.max_threads = min(self.freqai_info['rl_config'].get(
|
||||
'cpu_count', 0), int(self.max_system_threads / 2))
|
||||
th.set_num_threads(self.max_threads)
|
||||
self.reward_params = self.freqai_info['rl_config']['model_reward_parameters']
|
||||
|
|
Loading…
Reference in New Issue
Block a user