gin-config0.5.0
Published
Gin-Config: A lightweight configuration library for Python
pip install gin-config
Package Downloads
Authors
Project URLs
Requires Python
Dependencies
- pytorch-nightly
; extra == 'pytorch-nightly' - tensorflow
(>=1.13.0) ; extra == 'tensorflow' - tensorflow-gpu
(>=1.13.0) ; extra == 'tensorflow-gpu' - absl-py
(>=0.1.6) ; extra == 'testing' - mock
(>=3.0.5) ; extra == 'testing' - nose
; extra == 'testing' - tf-nightly
; extra == 'tf-nightly' - torch
(>=1.3.0) ; extra == 'torch'
Gin
Gin provides a lightweight configuration framework for Python, based on
dependency injection. Functions or classes can be decorated with
@gin.configurable, allowing default parameter values to be supplied from a
config file (or passed via the command line) using a simple but powerful syntax.
This removes the need to define and maintain configuration objects (e.g.
protos), or write boilerplate parameter plumbing and factory code, while often
dramatically expanding a project's flexibility and configurability.
Gin is particularly well suited for machine learning experiments (e.g. using TensorFlow), which tend to have many parameters, often nested in complex ways.
Authors: Dan Holtmann-Rice, Sergio Guadarrama, Nathan Silberman Contributors: Oscar Ramirez, Marek Fiser