LyWangPX / Reinforcement-Learning-2nd-Edition-by-Sutton-Exercise-Solutions

Solutions of Reinforcement Learning, An Introduction
MIT License
2.02k stars 466 forks source link

Improved script for ex. 4.7 #91

Open CorentinJ opened 2 years ago

CorentinJ commented 2 years ago

Hello, I have submitted my code for the exercise 4.7, in place of the current one.

I also didn't get results exactly equal to that of the book, but they're very close.

Plot of the base problem as presented in example 4.2: image

After introducing the two nonlinearities: image