Open c-lyu opened 1 year ago
I agree. The original author of this code base has an extraneous discount factor in the policy_evaluation
function. The correct place of the discount factor is in the GridWorld.bellman_expectation
function, and only in there.
Issue Description: The reproduction code for the Gridworld environment, located here, appears to have an inconsistency regarding the implementation of the discount factor in the policy evaluation. According to Sutton's book, there is no mention of multiplying the value by a discount factor here.
Expected Behavior: