Git Product home page Git Product logo

Comments (8)

ShangtongZhang avatar ShangtongZhang commented on May 12, 2024

see line 26 of the python script.

from reinforcement-learning-an-introduction.

xubo92 avatar xubo92 commented on May 12, 2024

@ShangtongZhang
Thank you for your attention.
However, when set state[goal]=1,why don't need add the reward part as 1 when achieve the goal.

image

where is the "r(s,a,s')" part? shouldn't it also be set to 1 when state[goal] =1.
Still not very clear about that. Am I understand something wrong?

from reinforcement-learning-an-introduction.

ShangtongZhang avatar ShangtongZhang commented on May 12, 2024

1 + gamma * 0 is equal to 0 + gamma * 1 if gamma == 1

from reinforcement-learning-an-introduction.

xubo92 avatar xubo92 commented on May 12, 2024

@ShangtongZhang
Thank you for your answer.
but 1 + gamma * 1 won't happen? r(s,a,s')=1,gamma=1,and v(state=goal)=1?
why is it that when you say r(s,a,s')=1, you defaultly set v(state=goal)=0 or when you say v(state=goal) == 0 , you defaultly set r(s,a,s')=0?
why these two part r(s,a,s')=1 and v(state=goal)=1 cannot exist at the same time when the goal is achieved?
Hopefully i make myself more clear.

from reinforcement-learning-an-introduction.

ShangtongZhang avatar ShangtongZhang commented on May 12, 2024

You may find exercise 4.8 helpful

from reinforcement-learning-an-introduction.

xubo92 avatar xubo92 commented on May 12, 2024

@ShangtongZhang
Have thought about exercise 4.8. Honestly, can't figure it out.
Could you please send me a copy of solutions about exercises?
:-)
Thank you!

from reinforcement-learning-an-introduction.

ShangtongZhang avatar ShangtongZhang commented on May 12, 2024

I guess the pdf solution doesn't exist. You should think harder by yourself.

from reinforcement-learning-an-introduction.

xubo92 avatar xubo92 commented on May 12, 2024

@ShangtongZhang
OK. I think I've got it. Thank you for your patience and lucid code.

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.