autobazaar.utils module¶
Functions
|
|
|
Create diretory if it does not exist yet. |
|
Get nested dicts of params to allow json dumping. |
Make the keras models picklable. |
|
|
Replace dots with dashes in all the keys from the dictionary. |
|
Replace dashes with dots in all the keys from the dictionary. |
-
autobazaar.utils.
make_dumpable
(params, datetimes=False)[source]¶ Get nested dicts of params to allow json dumping.
Also work around this: https://github.com/HDI-Project/BTB/issues/79 And convert numpy types to primitive types.
Optionally dump datetimes to ISO format.
- Parameters
params (dict) – Params dictionary with tuples as keys.
datetimes (bool) – whether to convert datetimes to ISO strings or not.
- Returns
Dumpable params as a tree of dicts and nested sub-dicts.
- Return type
dict