ForeBlocks Docs
Modular time-series forecasting for PyTorch
foreblocks provides forecasting models, training, evaluation, and preprocessing. foretools offers companion utilities for synthetic data, feature engineering, decomposition, and hyperparameter search. The docs guide you from a simple baseline to advanced architectures and architecture search.
ForecastingModel + Trainer + ModelEvaluator for a quick baseline.TimeSeriesHandler converts raw [T, D] arrays into training windows automatically.foretools adds synthetic data generation, BOHB search, VMD decomposition, and feature engineering.Choose your route
Path 01
Train a baseline model
Start with the smallest reliable public API path. Validates imports, dataloader shapes, and evaluation before adding extras.
Path 02
Handle raw time series
Use TimeSeriesHandler to automatically scale, filter, window, and prepare raw multivariate arrays.
Path 03
Explore advanced backbones
Learn transformer attention, MoE routing, custom blocks, and Hybrid Mamba for stronger models.
Path 04
Automate architecture search
Run DARTS to automatically discover optimal architecture combinations from a defined operation pool.
Path 05
Add uncertainty intervals
Use conformal prediction to generate prediction intervals when you need coverage guarantees.
Path 06
Use companion utilities
Access synthetic data generation, BOHB search, VMD decomposition, and feature engineering tools.
Recommended reading order
foreblocks and foretools connect.Install by intent
| Need | Command | Next page |
|---|---|---|
| Core forecasting | pip install foreblocks | Getting Started |
| Raw-series preprocessing | pip install "foreblocks[preprocessing]" | Preprocessor Guide |
| Architecture search (DARTS) | pip install "foreblocks[darts]" | DARTS Guide |
| Experiment tracking (MLTracker) | pip install "foreblocks[mltracker]" | Web UI |
| VMD decomposition | pip install "foreblocks[vmd]" | VMD Guide |
| Wavelet utilities | pip install "foreblocks[wavelets]" | Coming soon |
| All runtime extras | pip install "foreblocks[all]" | Overview |
Documentation map
Tutorials
Step-by-step runnable paths:
Guides
Topic-based deep dives:
- Preprocessor
- Custom Blocks
- Transformer
- Mixture of Experts
- Hybrid Mamba
- DARTS
- Evaluation & Metrics
- Uncertainty Quantification
- Web UI
- Troubleshooting
Foretools
Companion utilities and helpers:
- Foretools Overview
- Time Series Generator
- BOHB Search
- VMD Decomposition
- AutoDA Augmentation
- Feature Engineering
Architecture
Internals and system notes:
Stable public entry points
Start here before using deep imports:
Core
from foreblocks import (
ForecastingModel,
Trainer,
ModelEvaluator,
TimeSeriesHandler,
TimeSeriesDataset,
create_dataloaders,
ModelConfig,
TrainingConfig,
)Architecture search
from foreblocks.darts import (
DARTSTrainer,
DARTSConfig,
DARTSTrainConfig,
FinalTrainConfig,
MultiFildelitySearchConfig,
)Uncertainty
from foreblocks.core import ConformalPredictionEngineHybrid Mamba
from foreblocks.hybrid_mamba import (
HybridMambaBlock,
HybridMamba2Block,
TinyHybridMamba2LM,
)Wavelet utilities (coming soon)
from foreblocks.blocks import WaveletAttention
from foreblocks.blocks import WaveletConv1dNotes
- The canonical docs source lives in
docs/. - The published versioned docs live under
/docs/. foretoolsutilities are documented here even when not re-exported from top-levelforeblocks.