fourier
| Name | Type | Description | Default |
|---|---|---|---|
df | pandas or polars DataFrame | Dataframe with ids, times and values for the exogenous regressors. | required |
freq | str or int | Frequency of the data. Must be a valid pandas or polars offset alias, or an integer. | required |
season_length | int | Number of observations per unit of time. Ex: 24 Hourly data. | required |
k | int | Maximum order of the fourier terms | required |
h | int | Forecast horizon. Defaults to 0. | 0 |
id_col | str | Column that identifies each serie. Defaults to ‘unique_id’. | ‘unique_id’ |
time_col | str | Column that identifies each timestep, its values can be timestamps or integers. Defaults to ‘ds’. | ‘ds’ |
trend
| Name | Type | Description | Default |
|---|---|---|---|
df | pandas or polars DataFrame | Dataframe with ids, times and values for the exogenous regressors. | required |
freq | str or int | Frequency of the data. Must be a valid pandas or polars offset alias, or an integer. | required |
h | int | Forecast horizon. Defaults to 0. | 0 |
id_col | str | Column that identifies each serie. Defaults to ‘unique_id’. | ‘unique_id’ |
time_col | str | Column that identifies each timestep, its values can be timestamps or integers. Defaults to ‘ds’. | ‘ds’ |
time_features
| Name | Type | Description | Default |
|---|---|---|---|
df | pandas or polars DataFrame | Dataframe with ids, times and values for the exogenous regressors. | required |
freq | str or int | Frequency of the data. Must be a valid pandas or polars offset alias, or an integer. | required |
features | list of str or callable | Features to compute. Can be string aliases of timestamp attributes or functions to apply to the times. | required |
h | int | Forecast horizon. Defaults to 0. | 0 |
id_col | str | Column that identifies each serie. Defaults to ‘unique_id’. | ‘unique_id’ |
time_col | str | Column that identifies each timestep, its values can be timestamps or integers. Defaults to ‘ds’. | ‘ds’ |
future_exog_to_historic
h steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df | pandas or polars DataFrame | Dataframe with ids, times and values for the exogenous regressors. | required |
freq | str or int | Frequency of the data. Must be a valid pandas or polars offset alias, or an integer. | required |
features | list of str | Features to be converted into historic. | required |
h | int | Forecast horizon. Defaults to 0. | 0 |
id_col | str | Column that identifies each serie. Defaults to ‘unique_id’. | ‘unique_id’ |
time_col | str | Column that identifies each timestep, its values can be timestamps or integers. Defaults to ‘ds’. | ‘ds’ |
pipeline
| Name | Type | Description | Default |
|---|---|---|---|
df | pandas or polars DataFrame | Dataframe with ids, times and values for the exogenous regressors. | required |
features | list of callable | List of features to compute. Must take only df, freq, h, id_col and time_col (other arguments must be fixed). | required |
freq | str or int | Frequency of the data. Must be a valid pandas or polars offset alias, or an integer. | required |
h | int | Forecast horizon. Defaults to 0. | 0 |
id_col | str | Column that identifies each serie. Defaults to ‘unique_id’. | ‘unique_id’ |
time_col | str | Column that identifies each timestep, its values can be timestamps or integers. Defaults to ‘ds’. | ‘ds’ |

