NoriTSForecaster converts one or many time series into regression features
and reconstructs point and quantile forecasts. The quickstart below runs Nori
locally with an explicitly selected model.
Quickstart
1
Install the forecasting dependencies
Follow Installation and choose the
hosted or local forecasting extra.
2
Create a history DataFrame
Provide
timestamp and target columns, ordered from oldest to newest.3
Forecast the horizon
predict_df returns one row per future timestamp.target is the median forecast. The other columns contain the requested
quantiles.Choose where it runs
The quickstart usesmode="local". To run the same feature preparation and
forecast reconstruction against hosted Nori, change only the backend
configuration:
X_train, y_train, and X_test locally, then sends the unchanged regression
contract through the selected client backend. Use mode="sagemaker" with
endpoint_name= and region_name= for your AWS endpoint.
Multiple series
Add anitem_id column to forecast several series in one call. Nori fits and
forecasts each series independently.
Future-known covariates
Passfuture_df= when a numeric feature is known across the forecast horizon.
For example, you know a planned promotion before prediction and can supply it
for both the history and future rows. Use target_column= to keep a domain name
such as sales in both the input and forecast.
promotion is an input feature. Every numeric
history covariate must appear throughout future_df. Only provide values you
know at prediction time, such as planned promotions, holidays, weather
forecasts, or scheduled prices. A realized future target or any value observed
only after the forecast timestamp would be target leakage.
target_column= accepts one column name per call. To forecast several target
columns, call predict_df once for each target. Passing a sequence raises a
clear error before Nori sends a local or hosted request.How it works
Tabular conversion
Tabular conversion
For each series, the forecaster creates rows indexed by
(item_id, timestamp). Historical rows contain the observed target, and
future rows contain generated time features. Numeric columns supplied in
both the history and horizon are also used as covariates. Nori fits on the
historical rows and predicts the future rows.The time features
The time features
The default features include a running index, calendar sine and cosine
values, and seasonal periods detected from the history. You can replace
them with custom feature generators through
features=.Quantile output
Quantile output
Set
quantiles= to choose the returned quantile columns. The target
column contains the median forecast.Configuration
NoriTSForecaster parameters
NoriTSForecaster parameters
predict_df DataFrame contract
predict_df DataFrame contract
context_df needs timestamp and one target column. Add item_id for
multi-series frames. Pass exactly one of prediction_length= or
future_df=. Use target_column= when the target is not named target.
The result is indexed by (item_id, timestamp) and contains the median
under the target’s original name plus one column per quantile level.prediction_length=, the forecaster generates timestamps and drops
history covariates because their future values are unknown. With
future_df=, the explicit horizon supplies those future values. Its target
must be absent or entirely missing.Good to know
- One
predict_dfcall forecasts one target column across one or manyitem_idseries. future_dfmust contain the sameitem_idvalues as history, without duplicate or overlapping timestamps.- DataFrame preparation is local in every mode. Remote and SageMaker modes send only the resulting numeric regression request.
Next steps
Python Client
Configure explicit local, hosted, and SageMaker execution.
Text Features
Add free-text columns to the shared regression preparation path.
Examples
Browse more end-to-end Nori workflows.