From e5df39e8913721847c0f6ab9754a71cde0cea38b Mon Sep 17 00:00:00 2001 From: robcaulk Date: Mon, 15 Aug 2022 18:08:20 +0200 Subject: [PATCH] ensuring best_model is placed in ram and saved to disk and loaded from disk --- .../prediction_models/ReinforcementLearningPPO_multiproc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/prediction_models/ReinforcementLearningPPO_multiproc.py b/freqtrade/freqai/prediction_models/ReinforcementLearningPPO_multiproc.py index 743caf8c6..8370500b9 100644 --- a/freqtrade/freqai/prediction_models/ReinforcementLearningPPO_multiproc.py +++ b/freqtrade/freqai/prediction_models/ReinforcementLearningPPO_multiproc.py @@ -62,7 +62,7 @@ class ReinforcementLearningPPO_multiproc(BaseReinforcementLearningModel): env_id = "train_env" num_cpu = int(dk.thread_count / 2) train_env = SubprocVecEnv([make_env(env_id, i, 1, train_df, price, reward_params, - self.CONV_WIDTH) for i in range(train_num_cpu)]) + self.CONV_WIDTH) for i in range(num_cpu)]) eval_env_id = 'eval_env' eval_env = SubprocVecEnv([make_env(eval_env_id, i, 1, test_df, price_test, reward_params,