← AI GitHub

AI GitHub

sktime for composable time-series learning

Build and evaluate forecasting and other time-series models with consistent interfaces.

Science and ResearchPublished 1 min read

Key Takeaways

  • The library provides forecasting horizons, temporal splitters and transformers that respect ordered data.
  • Decide the forecasting horizon and which external variables are available at each timestamp.
  • Backtest a seasonal baseline and one learned model on rolling windows.
  • Feature availability changes with the forecast timestamp.

How it works

The library provides forecasting horizons, temporal splitters and transformers that respect ordered data. Pipelines combine time-series preprocessing with estimators.

What you need

Decide the forecasting horizon and which external variables are available at each timestamp. Build the baseline with the same information that production predictions will receive.

What to try first

Backtest a seasonal baseline and one learned model on rolling windows. Compare errors by forecast horizon rather than relying on an overall average.

Backtest a period with missing observations and one with a seasonal change. The forecast must remain aligned with the timestamps supplied to the application.

Where to look for failures

Feature availability changes with the forecast timestamp. Ensure regressors and scaling use only information available at prediction time.

Related Franklin pages

A random train-test split can hide time-dependent failures. Use rolling or sequential evaluation and match the feature information available at each prediction time.

For a primer on learning from data and evaluating predictions, see Franklin’s glossary. Machine learning

Project documentation

Try it for your workflow

Explore the project’s documentation for setup and usage, or save this page to a collection for later.

Read the project documentation ↗