TSFast¶
A deep learning library for time series analysis and system identification, built on PyTorch.
Key Features¶
- Specialized Data Handling —
WindowedDataset, sequence transforms,TbpttLearnerfor truncated backpropagation - Benchmark Datasets — One-line access to Silverbox, Wiener-Hammerstein, Cascaded Tanks, and more via
identibench - Time Series Models — RNNs (DenseNet, Residual), TCNs, CRNNs with layer normalization
- Integrated Training —
RNNLearner,TCNLearner,CRNNLearnerwith custom losses (nrmse,cut_loss) and transforms - System Identification — Simulation, N-step prediction, FranSys, autoregressive models
- Hyperparameter Optimization — Ray Tune integration via
HPOptimizer - Deployment —
InferenceWrapperfor NumPy-in/NumPy-out inference, ONNX export
Quick Start¶
from tsfast.basics import *
# Load benchmark dataset and visualize
dls = create_dls_silverbox()
dls.show_batch(max_n=1)
# Train an RNN
lrn = RNNLearner(dls)
lrn.fit_flat_cos(1)
# Visualize results
lrn.show_results(max_n=1)
Ready to learn more? Start with Installation or jump to Your First Model.
Quick Import¶
TSFast provides a convenience barrel import for interactive use:
This imports all public symbols from tsdata, training, models, prediction, and inference. For production code, prefer explicit imports from specific modules (e.g., from tsfast.models.rnn import RNNLearner).
Citation¶
If you use TSFast in your research, please cite:
