caikit.interfaces.ts.data_model.backends.base
Base classes to share between data model backends
Attributes
Classes
Intermediate base class that disables attribute caching |
|
Intermediate base class that raises attribute errors for unknown fields |
|
Abstract base class for all backends of the central TimeSeries data model |
|
Abstract base class for all backends of the central MultiTimeSeries data model |
Module Contents
- caikit.interfaces.ts.data_model.backends.base.error
- class caikit.interfaces.ts.data_model.backends.base.UncachedBackendMixin[source]
Bases:
caikit.core.data_model.data_backends.DataModelBackendBaseIntermediate base class that disables attribute caching
- class caikit.interfaces.ts.data_model.backends.base.StrictFieldBackendMixin[source]
Bases:
caikit.core.data_model.data_backends.DataModelBackendBaseIntermediate base class that raises attribute errors for unknown fields
- class caikit.interfaces.ts.data_model.backends.base.TimeSeriesBackendBase[source]
Bases:
UncachedBackendMixin,StrictFieldBackendMixinAbstract base class for all backends of the central TimeSeries data model type
- abstract as_pandas() Tuple[pandas.DataFrame, str, Iterable[str]][source]
All backends must implement the ability to coerce their underlying data into a pandas DataFrame and provide the pointers to the timeseries source and value source(s)
- Returns:
- df: pd.DataFrame
The data frame itself
- timestamp_source: str
The column name (or None) indicating where the timestamp sequence can be found
- value_source: Iterable[str]
The names of the columns holding value sequences
- class caikit.interfaces.ts.data_model.backends.base.MultiTimeSeriesBackendBase[source]
Bases:
UncachedBackendMixin,StrictFieldBackendMixinAbstract base class for all backends of the central MultiTimeSeries data model type
- abstract as_pandas() Tuple[pandas.DataFrame, Iterable[str], str, Iterable[str]][source]
All backends must implement the ability to coerce their underlying data into a pandas DataFrame and provide the pointers to the timeseries source and value source(s)
- Returns:
- df: pd.DataFrame
The data frame itself
- key_source: Iterable[str]
the names of the columns holding key values
- timestamp_source: str
The column name (or None) indicating where the timestamp sequence can be found
- value_source: Iterable[str]
The names of the columns holding value sequences