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

Feature/jax mava custom config class #414

Merged
merged 23 commits into from
Feb 25, 2022

Conversation

arnupretorius
Copy link
Collaborator

What?

Config handler class for Jax based Mava systems.

Why?

More flexible configs that dynamically change with the component setup of a system.

How?

Implement a config class with methods to handle adding and updating config dataclass for different system components and updating config hyperparameters.

closes #411

@arnupretorius arnupretorius marked this pull request as draft February 18, 2022 09:21
@arnupretorius arnupretorius marked this pull request as ready for review February 21, 2022 09:47
KaleabTessera
KaleabTessera previously approved these changes Feb 24, 2022
Copy link
Contributor

@KaleabTessera KaleabTessera left a comment

Choose a reason for hiding this comment

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

This is excellent @arnupretorius , super excited to use this.

I just made some minor comments. My biggest comment is that it should be obvious what we are getting/setting when we call add,update,get,set. This are all called like config. , but some apply to self._config and others to self._built_config. This might be a bit confusing when using it.

mava/utils/config_utils.py Outdated Show resolved Hide resolved
mava/systems/jax/config.py Show resolved Hide resolved
mava/systems/jax/config.py Show resolved Hide resolved
mava/systems/jax/config.py Outdated Show resolved Hide resolved
mava/systems/jax/config_test.py Show resolved Hide resolved
Copy link
Contributor

@DriesSmit DriesSmit left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @arnupretorius 🔥 Just see my comments.

mava/systems/jax/config.py Show resolved Hide resolved
mava/systems/jax/config.py Show resolved Hide resolved
Copy link
Collaborator

@RuanJohn RuanJohn left a comment

Choose a reason for hiding this comment

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

Thank you @arnupretorius!

@arnupretorius arnupretorius merged commit 1e33d76 into develop Feb 25, 2022
@arnupretorius arnupretorius deleted the feature/jax-mava-custom-config-class branch February 25, 2022 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] custom Mava config class
4 participants