(env, policy, gamma = 1.0,  n = 100)
return np.mean(scores)
Evaluates a policy by running it n times.
    returns:
    average total reward
Evaluates a policy by running it n times.
    returns:
    average total reward
Evaluates a policy by running it n times . returns : average total reward
def evaluate_policy(env, policy, gamma = 1.0,  n = 100):
    """ Evaluates a policy by running it n times.
    returns:
    average total reward
    """
    scores = [
            run_episode(env, policy, gamma = gamma, render = False)
            for _ in range(n)]
    return np.mean(scores)
def evaluate_policy ( env , policy , gamma = 1.0 , n = 100 ) : scores = [ run_episode ( env , policy , gamma = gamma , render = False ) for _ in range ( n ) ] return np . mean ( scores )