aliby.baby_client.BabyParameters¶
- class BabyParameters(model_config, tracker_params, clogging_thresh, min_bud_tps, isbud_thresh, session, graph, print_info, suppress_errors, error_dump_dir, tf_version)[source]¶
Bases:
ParametersABC
Defines parameters as attributes
Methods
default
(**kwargs)kwargs passes values to the model chooser
from_yaml
(source)Returns instance from a yaml filename or stdin
to_dict
([iterable])Recursive function to return a nested dictionary of the attributes of the class instance.
to_yaml
([path])Returns a yaml stream of the attributes of the class instance.
update
(name, new_value)Update values recursively if name is a dictionary, replace data where existing found or add if not.
update_baby_modelset
(path)Replace default BABY model and flattener with another one from a folder outputted by our standard retraining script.
from_dict
- __init__(model_config, tracker_params, clogging_thresh, min_bud_tps, isbud_thresh, session, graph, print_info, suppress_errors, error_dump_dir, tf_version)[source]¶
Defines parameters as attributes
Methods
__init__
(model_config, tracker_params, ...)Defines parameters as attributes
default
(**kwargs)kwargs passes values to the model chooser
from_dict
(d)from_yaml
(source)Returns instance from a yaml filename or stdin
to_dict
([iterable])Recursive function to return a nested dictionary of the attributes of the class instance.
to_yaml
([path])Returns a yaml stream of the attributes of the class instance.
update
(name, new_value)Update values recursively if name is a dictionary, replace data where existing found or add if not.
update_baby_modelset
(path)Replace default BABY model and flattener with another one from a folder outputted by our standard retraining script.
- classmethod from_yaml(source)¶
Returns instance from a yaml filename or stdin
- to_dict(iterable='null')¶
Recursive function to return a nested dictionary of the attributes of the class instance.
- Return type
Dict
- to_yaml(path=None)¶
Returns a yaml stream of the attributes of the class instance. If path is provided, the yaml stream is saved there.
- Parameters
- pathUnion[PosixPath, str]
Output path.
- update(name, new_value)¶
Update values recursively if name is a dictionary, replace data where existing found or add if not. It warns against type changes.
If the existing structure under name is a dictionary, it looks for the first occurrence and modifies it accordingly.
If a leaf node that is to be changed is a collection, it adds the new elements.