-
Notifications
You must be signed in to change notification settings - Fork 0
fixing the reward updates #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Greptile OverviewGreptile SummaryImplemented per-agent reward conditioning by replacing hardcoded reward values with dynamically sampled weight arrays. The changes enable agents to learn from varied reward functions during training. Key changes:
Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Config as drive.ini
participant Reset as c_reset()
participant Agent as Agent Loop
participant Step as c_step()
participant Rewards as Reward Calculation
Config->>Reset: Load conditioning bounds (lb/ub)
Reset->>Reset: Sample collision_weights[i]
Reset->>Reset: Sample offroad_weights[i]
Reset->>Reset: Sample goal_weights[i]
Reset->>Agent: Initialize agents with weights
Agent->>Step: Execute agent action
Step->>Rewards: Check collision state
alt Vehicle Collision
Rewards->>Rewards: reward = collision_weights[i]
else Offroad
Rewards->>Rewards: reward = offroad_weights[i]
end
Step->>Rewards: Check goal distance
alt Goal Reached (Post Respawn)
Rewards->>Rewards: reward += reward_goal_post_respawn * goal_weights[i]
else Goal Reached (Generate New)
Rewards->>Rewards: reward += goal_weights[i]
else Goal Reached (Stop)
Rewards->>Rewards: reward = goal_weights[i]
end
Rewards->>Agent: Return per-agent rewards
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 files reviewed, no comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could place the policy in the co player policies folder?
No description provided.