ShangtongZhang / reinforcement-learning-an-introduction

Python Implementation of Reinforcement Learning: An Introduction
MIT License
13.45k stars 4.81k forks source link

chapter04/car_rental_synchronous.py: the table needs to be flipped. #124

Closed QuangTran4810 closed 4 years ago

QuangTran4810 commented 4 years ago

I think the table plot of the policy need a small correction. It needs to be flipped before plotted: plt.table(cellText=np.flipud(self.policy), loc=(0, 0), cellLoc='center') Otherwise the y-label and the policy will mismatch.

ShangtongZhang commented 4 years ago

Fixed, thanks for pointing this out!