Skip to content

Gain in VPGPolicy does not account for terminal states? #578

Closed
@ArjunNarayanan

Description

@ArjunNarayanan

I think we need to pass traj[:terminal] to discount_rewards so that the gain is computed only up to termination of an episode?

gains = traj[:reward] |> x -> discount_rewards(x, π.γ)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions