From b708134c1a1e6429216f2605f625e064d51da235 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Tue, 23 Aug 2022 15:06:57 +0200 Subject: [PATCH] switch multiproc thread count to rl_config definition --- .../freqai/prediction_models/ReinforcementLearner_multiproc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/prediction_models/ReinforcementLearner_multiproc.py b/freqtrade/freqai/prediction_models/ReinforcementLearner_multiproc.py index 96d42ae66..17281e2d0 100644 --- a/freqtrade/freqai/prediction_models/ReinforcementLearner_multiproc.py +++ b/freqtrade/freqai/prediction_models/ReinforcementLearner_multiproc.py @@ -60,7 +60,7 @@ class ReinforcementLearner_multiproc(BaseReinforcementLearningModel): # environments if not self.train_env: env_id = "train_env" - num_cpu = int(self.freqai_info["data_kitchen_thread_count"] / 2) + num_cpu = int(self.freqai_info["rl_config"]["thread_count"] / 2) self.train_env = SubprocVecEnv([make_env(env_id, i, 1, train_df, prices_train, self.reward_params, self.CONV_WIDTH, config=self.config) for i