Lookups
dataclass
These indexes are useful to climb up the hierarchies of certain axes. Lookups includes lookups like location_lookups: wholesaler->state->region lookups product_lookups: brand vehicle_lookups: vehicle->parent vehicle signal_lookups: signal->parent signal
Source code in wt_ml/output/artifacts/artifacts_dataclass.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
Others
dataclass
For backward compatibility purposes, it is imperative that any new dataframes must be added here only! The dataframes are nullable, so any function using this must handle it coreectly.
Source code in wt_ml/output/artifacts/artifacts_dataclass.py
35 36 37 38 39 40 41 42 |
|
dataclass_from_dict(data_class, data)
Create a data class instance from a dictionary.
:param data_class: a data class type :param data: a dictionary of a input data :param config: a configuration of the creation process :return: an instance of a data class
Source code in wt_ml/output/artifacts/_utils.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|