Skip to content
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

feat: ff_ippo refactor #1160

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

feat: ff_ippo refactor #1160

wants to merge 5 commits into from

Conversation

sash-a
Copy link
Contributor

@sash-a sash-a commented Feb 27, 2025

What?

A nice refactor to reduce the nesting used in PPO and generally make the code more understandable.

Why?

I wanted to test Claude code and am pleasantly surprised with the results.

How?

I asked Claude code to refactor the code and reduce the nesting and it's done well

Note:

This doesn't need to go in now, we should decide how quickly we want to merge this considering all the other PPO based systems.
Any style changes you've wanted should be added to this PR - so check carefully!

@sash-a sash-a requested a review from Copilot February 27, 2025 11:46
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR refactors parts of the PPO configuration by introducing a new configuration check to reduce nesting and improve code clarity.

  • Added a new configuration check function "check_anakin_ppo_config" to validate PPO configurations.
  • Improved configuration validation with additional assert statements.

Reviewed Changes

File Description
mava/utils/config.py Added a new function for PPO configuration validation with two asserts, one of which contains a typo in the error message.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant