boxcox_lambda
| Name | Type | Description | Default |
|---|---|---|---|
x | ndarray | Array with data to transform. | required |
method | str | Method to use. Valid options are ‘guerrero’ and ‘loglik’. ‘guerrero’ minimizes the coefficient of variation for subseries of x and supports negative values. ‘loglik’ maximizes the log-likelihood function. | required |
season_length | int | Length of the seasonal period. Only required if method=‘guerrero’. | None |
lower | float | Lower bound for the lambda. | -0.9 |
upper | float | Upper bound for the lambda. | 2.0 |
| Name | Type | Description |
|---|---|---|
float | float | Optimum lambda. |
boxcox
Returns:
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the transformed data. |
inv_boxcox
Returns:
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the inverted transformation. |
LocalMinMaxScaler
Bases: _BaseLocalScaler
Scale each group to the [0, 1] interval
LocalMinMaxScaler.fit
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Name | Type | Description |
|---|---|---|
self | _BaseLocalScaler | The fitted scaler object. |
LocalMinMaxScaler.fit_transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the transformed data. |
LocalMinMaxScaler.inverse_transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the inverted transformation. |
LocalMinMaxScaler.stack
LocalMinMaxScaler.take
LocalMinMaxScaler.transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the transformed data. |
LocalStandardScaler
Bases: _BaseLocalScaler
Scale each group to have zero mean and unit variance
LocalStandardScaler.fit
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Name | Type | Description |
|---|---|---|
self | _BaseLocalScaler | The fitted scaler object. |
LocalStandardScaler.fit_transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the transformed data. |
LocalStandardScaler.inverse_transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the inverted transformation. |
LocalStandardScaler.stack
LocalStandardScaler.take
LocalStandardScaler.transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the transformed data. |
LocalRobustScaler
_BaseLocalScaler
Scale each group using robust statistics
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scale | str | Type of robust scaling to use. Valid options are ‘iqr’ and ‘mad’. If ‘iqr’ will use the inter quartile range as the scale. If ‘mad’ will use median absolute deviation as the scale. | required |
LocalRobustScaler.fit
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Name | Type | Description |
|---|---|---|
self | _BaseLocalScaler | The fitted scaler object. |
LocalRobustScaler.fit_transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the transformed data. |
LocalRobustScaler.inverse_transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the inverted transformation. |
LocalRobustScaler.stack
LocalRobustScaler.take
LocalRobustScaler.transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the transformed data. |
LocalBoxCoxScaler
_BaseLocalScaler
Find the optimum lambda for the Box-Cox transformation by group and apply it
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
season_length | int | Length of the seasonal period. Only required if method=‘guerrero’. | None |
lower | float | Lower bound for the lambda. | -0.9 |
upper | float | Upper bound for the lambda. | 2.0 |
method | str | Method to use. Valid options are ‘guerrero’ and ‘loglik’. ‘guerrero’ minimizes the coefficient of variation for subseries of x and supports negative values. ‘loglik’ maximizes the log-likelihood function. | required |
LocalBoxCoxScaler.fit
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Name | Type | Description |
|---|---|---|
self | _BaseLocalScaler | The fitted scaler object. |
LocalBoxCoxScaler.fit_transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the transformed data. |
LocalBoxCoxScaler.inverse_transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the inverted transformation. |
LocalBoxCoxScaler.stack
LocalBoxCoxScaler.take
LocalBoxCoxScaler.transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the transformed data. |
Difference
| Name | Type | Description | Default |
|---|---|---|---|
d | int | Lag to subtract. | required |
Difference.fit_transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the transformed data. |
Difference.inverse_transform
| Name | Type | Description | Default |
|---|---|---|---|
ga | GroupedArray | Array with grouped data. | required |
| Type | Description |
|---|---|
ndarray | np.ndarray: Array with the inverted transformation. |

