Giter Site home page Giter Site logo

Comments (5)

tinglo avatar tinglo commented on August 23, 2024 1

Thank you for your reply.
But the Line 137 appends the state before it changes.
I output every states in an episode:
(the first element is action, the second element is state)
2018-04-29 4 26 41
And I output the value of the state (False, 14, 4), it shows 0.66666667,
since the count of every states initialize 1, and state (False, 14, 4) is counted twice-> (1+1)/(1+1+1) = 0.66666667
But the state(False, 14, 4) shouldn't be counted twice.

I'm sorry for asking too much.
I will introduce this chapter in a class, so I want to understand the deatails.
Thank you very much.

from reinforcement-learning-an-introduction.

ShangtongZhang avatar ShangtongZhang commented on August 23, 2024

Line 137 won't append the initial state. It just appends (action, next_state).

from reinforcement-learning-an-introduction.

ShangtongZhang avatar ShangtongZhang commented on August 23, 2024

Oh it's indeed a bug, thanks for pointing this out! I will fix it soon.

from reinforcement-learning-an-introduction.

ShangtongZhang avatar ShangtongZhang commented on August 23, 2024

I just pushed the fix, thanks again! It will be much appreciated if you let me know once you find new bugs.

from reinforcement-learning-an-introduction.

tinglo avatar tinglo commented on August 23, 2024

Sure!
My friends and I are studying RL recently, and your code really helps us understand more clearly!
We're really grateful for these implementations!

from reinforcement-learning-an-introduction.

Related Issues (20)

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.