Skip to content

cartpool-v2 need a fix on reward function probably? #1

@amugoodbad229

Description

@amugoodbad229

I am learning RL on prototwin.

I think this line, reward -= self.reward_position_penalty() * reward * 0.5 should be reward -= self.reward_position_penalty() * 0.5, removing the reward .

Normal reward function for cartpole will look like:
reward = (position_weight * position_reward + angle_weight * angle_penalty + force_weight * force_penalty)

If that is not the case, can anyone explain why reward was added like this: reward -= self.reward_position_penalty() * reward * 0.5?

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