imaginaire package



imaginaire.config module

Config utilities for yml file.

class imaginaire.config.AttrDict(*args, **kwargs)[source]

Bases: dict

Dict as attribute trick.


Convert object to yaml dict and return.

class imaginaire.config.Config(filename=None, verbose=False)[source]

Bases: imaginaire.config.AttrDict

Configuration class. This should include every human specifiable hyperparameter values for your training.

imaginaire.config.recursive_update(d, u)[source]

Recursively update AttrDict d with AttrDict u

imaginaire.config.rgetattr(obj, attr, *args)[source]

Recursively find object and return value

imaginaire.config.rsetattr(obj, attr, val)[source]

Recursively find object and set value

Module contents