Skip to content

Experience with Gin for configuring hyperparameters #1226

Answered by marcvanzee
marcvanzee asked this question in General
Discussion options

You must be logged in to vote

Below is a summary of opinions collected from a discussion between various experienced users (@lienz, @adarob, @markomernick, @dulacarnold, @olivierteboul, @johnpjf, @alextp):

  • We use gin for everything from data processing, flax models, loss functions, training loop, etc. We started with configdict but then switched to gin as (in my opinion) it's the most practical way of handling hyperparameters, in particular when your hyperparameters can be classes (like the type of model to train).

  • The main benefits of gin are:

    • ability to use functions/classes as values
    • ability to inherit from other configs (rather than starting from scratch each time)

    However, you have to be very careful not to…

Replies: 1 comment

Comment options

marcvanzee
Apr 8, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by marcvanzee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant