diff --git a/data/params.db b/data/params.db index d946738..58a552e 100644 Binary files a/data/params.db and b/data/params.db differ diff --git a/lib/RLTrader.py b/lib/RLTrader.py index 4c6617d..c223c8a 100644 --- a/lib/RLTrader.py +++ b/lib/RLTrader.py @@ -134,8 +134,8 @@ def optimize_params(self, trial, n_prune_evals_per_trial: int = 2, n_tests_per_e del test_provider - train_env = SubprocVecEnv([make_env(train_provider, i) for i in range(1)]) - validation_env = SubprocVecEnv([make_env(validation_provider, i) for i in range(1)]) + train_env = DummyVecEnv([lambda: TradingEnv(train_provider)]) + validation_env = DummyVecEnv([lambda: TradingEnv(validation_provider)]) model_params = self.optimize_agent_params(trial) model = self.Model(self.Policy,