Skip to content

Easy parameter specification using dataclasses made using attr library.

License

Notifications You must be signed in to change notification settings

Shivanshu-Gupta/attr-hyperparams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attr-Hyperparams

Easy parameter specification using dataclasses made using the attr library. It comes with following advantages compared to other parametrisation schemes (eg. jsons)

  1. No KeyErrors
  2. Typed
  3. Default values so only need to specify changes - (compared this to maintaining tons of json files for each configuration)
  4. All attr features for free. Eg. validators, comparators etc.
  5. Intellisense in ide
  6. Both dict-like and dot access
  7. Interconversion to/from dict as well as flattened dict
  8. Easy De/serialisation from/to json and yaml.
  9. Direct instantiation of objects from parameters specifying constructor arguments.
  10. Flexible + automatic disambiguation
  11. Easy hyper-parameter search
  12. And last but not the least, almost no overhead!

See this notebook for examples of usage and features.

Releases

No releases published

Packages

No packages published