ShangtongZhang/reinforcement-learning-an-introduction

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

QuangTran4810 opened this issue · 1 comments

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.

Fixed, thanks for pointing this out!