AI4Finance-Foundation / AI4Finance-Foundation/FinRL
Google colab Stock_NeurIPS2018_SB3.ipynb StockTradingEnv.reset() got an unexpected keyword argument 'seed'
- 主要语言
- Jupyter Notebook
- 星标
- 16.3k
- 派生
- 3.5k
- PR 合并指标
- 30 天内没有已合并 PR
描述
In running the following code in google colab for Stock_NeurIPS2018_SB3.ipynb
env_train, _ = e_train_gym.get_sb_env()
I get the following error. Seems related to gym version.
Gynasium 0.28.1 is installed.
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
----> 1 env_train, _ = e_train_gym.get_sb_env()
2 print(type(env_train))
1 frames
[/usr/local/lib/python3.10/site-packages/stable_baselines3/common/vec_env/dummy_vec_env.py](https://localhost:8080/#) in reset(self)
74 def reset(self) -> VecEnvObs:
75 for env_idx in range(self.num_envs):
---> 76 obs, self.reset_infos[env_idx] = self.envs[env_idx].reset(seed=self._seeds[env_idx])
77 self._save_obs(env_idx, obs)
78 # Seeds are only used once
TypeError: StockTradingEnv.reset() got an unexpected keyword argument 'seed'
--
!pip show gymnasium
Name: gymnasium
Version: 0.28.1
Summary: A standard API for reinforcement learning and a diverse set of reference environments (formerly Gym).
Home-page:
Author:
Author-email: Farama Foundation <[contact@farama.org](mailto:contact@farama.org)>
License: MIT License
Location: /usr/local/lib/python3.10/site-packages
Requires: cloudpickle, farama-notifications, jax-jumpy, numpy, typing-extensions
Required-by: Shimmy, stable-baselines3
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。