GithubHelp home page GithubHelp logo

trading-gym's Issues

ValueError: could not broadcast input array from shape (51,6) into shape (50,6)

How to fix this? I run the Example(train_fake.py) file with parameter of True & True

Traceback (most recent call last):
File "C:/Users/amit/PycharmProjects/dqnTrading/train_fake.py", line 40, in
test_fake(True, True)
File "C:/Users/amit/PycharmProjects/dqnTrading/train_fake.py", line 30, in test_fake
'learning_rate': 5e-5
File "C:\Users\amit\PycharmProjects\dqnTrading\base.py", line 111, in train
model.learn(total_timesteps=train_steps, callback=self.callback)
File "C:\Users\amit\venv\new\lib\site-packages\stable_baselines\deepq\dqn.py", line 180, in learn
obs = self.env.reset()
File "C:\Users\amit\venv\new\lib\site-packages\stable_baselines\common\base_class.py", line 765, in reset
return self.unvec_obs(self.venv.reset())
File "C:\Users\amit\venv\new\lib\site-packages\stable_baselines\common\vec_env\dummy_vec_env.py", line 50, in reset
self._save_obs(env_idx, obs)
File "C:\Users\amit\venv\new\lib\site-packages\stable_baselines\common\vec_env\dummy_vec_env.py", line 69, in _save_obs
self.buf_obs[key][env_idx] = obs
ValueError: could not broadcast input array from shape (51,6) into shape (50,6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.