module timeseries.preprocessing
#
Short summary#
module mlinsights.timeseries.preprocessing
Timeseries preprocessing.
Classes#
class |
truncated documentation |
---|---|
Computes timeseries differences. |
|
Computes the reverse of |
Properties#
property |
truncated documentation |
---|---|
|
HTML representation of estimator. This is redundant with the logic of _repr_mimebundle_. The latter should … |
|
HTML representation of estimator. This is redundant with the logic of _repr_mimebundle_. The latter should … |
Returns the degree. |
Methods#
method |
truncated documentation |
---|---|
Stores the first values. |
|
Checks that estimator is fitted. |
|
Returns the reverse tranform. |
|
Transforms both X and y. Returns X and y, returns sample_weight as well if not None. |
|
Transforms both X and y. Returns X and y, returns sample_weight as well if not None. |
Documentation#
Timeseries preprocessing.
- class mlinsights.timeseries.preprocessing.TimeSeriesDifference(degree=1)#
Bases:
BaseReciprocalTimeSeriesTransformer
Computes timeseries differences.
- Parameters:
degree – number of differences
- __init__(degree=1)#
- Parameters:
degree – number of differences
- property degree#
Returns the degree.
- fit(X, y, sample_weight=None)#
Stores the first values.
- get_fct_inv()#
Returns the reverse tranform.
- transform(X, y, sample_weight=None)#
Transforms both X and y. Returns X and y, returns sample_weight as well if not None.
- class mlinsights.timeseries.preprocessing.TimeSeriesDifferenceInv(estimator)#
Bases:
BaseReciprocalTimeSeriesTransformer
Computes the reverse of
TimeSeriesDifference
.- Parameters:
estimator – of type
TimeSeriesDifference
- __init__(estimator)#
- Parameters:
estimator – of type
TimeSeriesDifference
- fit(X=None, y=None, sample_weight=None)#
Checks that estimator is fitted.
- transform(X, y, sample_weight=None)#
Transforms both X and y. Returns X and y, returns sample_weight as well if not None.