Experience with Gin for configuring hyperparameters #1226
-
Gin provides a lightweight configuration framework for Python, based on dependency injection. Functions or classes can be decorated with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Below is a summary of opinions collected from a discussion between various experienced users (@lienz, @adarob, @markomernick, @dulacarnold, @olivierteboul, @johnpjf, @alextp):
|
Beta Was this translation helpful? Give feedback.
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:
However, you have to be very careful not to…