We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError Traceback (most recent call last) in <cell line: 1>() 96 97 e_trade_gym = StockTradingEnv(df = processed_trade,**env_kwargs) ---> 98 env_trade, obs_trade = e_trade_gym.get_sb_env() 99 100 df_account_value_sac, df_actions_sac = DRLAgent.DRL_prediction(
2 frames /usr/local/lib/python3.10/dist-packages/stable_baselines3/common/vec_env/dummy_vec_env.py in _save_obs(self, env_idx, obs) 106 for key in self.keys: 107 if key is None: --> 108 self.buf_obs[key][env_idx] = obs 109 else: 110 self.buf_obs[key][env_idx] = obs[key] # type: ignore[call-overload]
ValueError: setting an array element with a sequence. The requested array would exceed the maximum number of dimension of 1.
Screenshot shows how the cov_list feature looks on my testing/trading set. Please help
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ValueError Traceback (most recent call last)
in <cell line: 1>()
96
97 e_trade_gym = StockTradingEnv(df = processed_trade,**env_kwargs)
---> 98 env_trade, obs_trade = e_trade_gym.get_sb_env()
99
100 df_account_value_sac, df_actions_sac = DRLAgent.DRL_prediction(
2 frames
/usr/local/lib/python3.10/dist-packages/stable_baselines3/common/vec_env/dummy_vec_env.py in _save_obs(self, env_idx, obs)
106 for key in self.keys:
107 if key is None:
--> 108 self.buf_obs[key][env_idx] = obs
109 else:
110 self.buf_obs[key][env_idx] = obs[key] # type: ignore[call-overload]
ValueError: setting an array element with a sequence. The requested array would exceed the maximum number of dimension of 1.
Screenshot shows how the cov_list feature looks on my testing/trading set. Please help
The text was updated successfully, but these errors were encountered: