moabitcoin / cherry-pytorch

Reinforcement Learning Tutorials & other bedtime stories in PyTorch
MIT License
11 stars 1 forks source link

bug fix in get_state #14

Closed sandhawalia closed 4 years ago

sandhawalia commented 4 years ago

This PR address the following logical bug in get_state. During get_state(complete=False) we should return the last state_size frames from agent.history. Previously we were returning the first agent.state_size frames.

At agent.optimize we get the first agent.state_size frames as state and last agent.state_size frames for next_state