Skip to main content
Ctrl+K
Twiga Forecast Twiga Forecast
  • Quickstart
  • Handbook
  • Models
  • Probabilistic
  • Deploy
    • Tutorials
    • Gallery
    • Contribute
    • Blueprint
    • Reference
    • Visualization

Twiga 0.1.2 is in alpha. The API may change before 1.0.

View changelog
  • GitHub
  • PyPI
  • Quickstart
  • Handbook
  • Models
  • Probabilistic
  • Deploy
  • Tutorials
  • Gallery
  • Contribute
  • Blueprint
  • Reference
  • Visualization

Twiga 0.1.2 is in alpha. The API may change before 1.0.

View changelog
  • GitHub
  • PyPI

Section Navigation

Indices

  • General Index
  • Python Module Index
  • Tutorial Gallery

Tutorial Gallery#

Browse all 16 Twiga tutorials organised by topic and difficulty. Click any card to open the notebook.

01
Beginner

Getting Started

Load data, configure the forecaster, and run your first prediction.

02
Beginner

Forecastability Analysis

Measure signal strength before modelling - entropy, Hurst, autocorrelation.

03
Beginner

Feature Engineering

Calendar features, lag transforms, Fourier encoding, and scaling.

04
Beginner

ML Point Forecasting

LightGBM, XGBoost, and CatBoost for point forecasts.

05
Beginner

Backtesting & Evaluation

Time-based cross-validation, RMSE/MAE/MASE, and walk-forward testing.

15
Beginner

Baseline Benchmarking

Naive, seasonal naive, window average, and drift baselines - establish a performance floor and compute skill scores.

06
Intermediate

Neural Network Models

MLPF, MLPGAM, N-HiTS, and GANF architectures with PyTorch Lightning.

07
Intermediate

Quantile Regression

Pinball loss, prediction intervals, QR and FPQR distribution heads.

08
Intermediate

Parametric Distributions

Normal, Gamma, Beta, LogNormal heads - choosing the right distribution.

09
Intermediate

Conformal Prediction

Coverage-guaranteed intervals on any model with CQR and CRC methods.

10
Advanced

Hyperparameter Tuning

Optuna integration, search spaces, resumable SQLite studies.

11
Advanced

Ensemble Strategies

Mean, median, and weighted ensemble over multiple models.

12
Advanced

Custom Models

Plug in your own model by implementing the Twiga model interface.

13
Intermediate

Time-Series Differencing

First-difference and seasonal differencing to handle non-stationary series.

14
Advanced

Typed Forecast Results

Auto-dims, distribution= shorthand, and ForecastResult typed API.

16
Intermediate

SHAP Feature Attribution

TreeExplainer for LightGBM/XGBoost/CatBoost - rank features and visualise lookback-window importance.

previous

MLOps: Tracking, Serving & Monitoring

next

Contributing

© Copyright 2024–2026, sambaiga, apina.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.17.1.