Comments (2)
Hi, the value iteration is correct. It should be R(s) not R(s1). That is unfortunately a common confusion due to the Control Theory notation. In Sutton&Barto's equation, R_{t+1} doesn't mean the reward of S_{t+1} but the reward of S_t, and the reason is in control theory you observe a reward of the state at the next time step. So, at time step t let's say you arrive at s5, then S_t = s5. But you observe the reward of s5 at the next time step, not instantaneously. So R_{t+1} = R(s5). In value iteration, the value of a state is updated as reward of that state + max(value of all possible next states) averaged over the transition probabilities of course.
That being said, there are other problems in the code such as the computation of stochastic policy in value_iteration. He/she uses a simpler scheme than Ziebart. For more check Ziebart's thesis (came after the MaxENT paper, 2010). It's under Algorithms section, called "State log partition function".
from irl-imitation.
Hey, thanks for the explanation!
I noticed the difference between the paper and this implementation. It seems that for this little toy example this still works quite well.
from irl-imitation.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irl-imitation.