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: better configs #93

Merged
merged 31 commits into from
Jul 18, 2023
Merged

Feature: better configs #93

merged 31 commits into from
Jul 18, 2023

Conversation

bengioe
Copy link
Collaborator

@bengioe bengioe commented Jun 6, 2023

The repository is now at a size where it makes no sense to have arbitrary strings used as hyperparameter names.
This PR replaces the "giant-dict-as-config" with a structured & typed config, which makes each module responsible for defining & documenting its own configuration.

Tasks:

  • fix tests to use new config
  • finish writing default configuration docstrings

Because this is a "breaking" change this PR updates the minor version to 1, making this release 0.1.0.

@bengioe bengioe requested review from bearnshaw and aebrer June 6, 2023 18:55
pyproject.toml Outdated Show resolved Hide resolved
src/gflownet/utils/metrics.py Outdated Show resolved Hide resolved
tests/test_frag_env.py Outdated Show resolved Hide resolved
@bengioe bengioe removed the request for review from aebrer July 11, 2023 13:44
Copy link

@maclandrol maclandrol left a comment

Choose a reason for hiding this comment

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

First past, see comments.

pyproject.toml Outdated Show resolved Hide resolved
src/gflownet/algo/advantage_actor_critic.py Show resolved Hide resolved
src/gflownet/data/sampling_iterator.py Show resolved Hide resolved
src/gflownet/algo/trajectory_balance.py Outdated Show resolved Hide resolved
src/gflownet/tasks/config.py Outdated Show resolved Hide resolved
src/gflownet/tasks/qm9/qm9.py Show resolved Hide resolved
src/gflownet/train.py Outdated Show resolved Hide resolved
src/gflownet/train.py Show resolved Hide resolved
Copy link

@hadim hadim left a comment

Choose a reason for hiding this comment

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

See a few comments below. Most of them are FYI mostly!

Nice refactoring and I guess it will make config management much easier. I also appreciate the nice and explicit variable naming (something that is underestimated IMO xD).

src/gflownet/algo/advantage_actor_critic.py Show resolved Hide resolved
src/gflownet/config.py Show resolved Hide resolved
src/gflownet/tasks/config.py Show resolved Hide resolved
src/gflownet/tasks/qm9/qm9.py Show resolved Hide resolved
src/gflownet/tasks/seh_frag.py Show resolved Hide resolved
src/gflownet/tasks/seh_frag.py Show resolved Hide resolved
src/gflownet/tasks/seh_frag.py Show resolved Hide resolved
src/gflownet/tasks/seh_frag.py Show resolved Hide resolved
@bengioe bengioe merged commit ffabcfd into trunk Jul 18, 2023
6 checks passed
@bengioe bengioe deleted the feat_better_configs branch July 18, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants