--- template: overrides/main.html title: Basic Usage --- ## 1. Prerequisites You’ll need to know a bit of Python. To work the examples, you’ll need `pandas` installed in addition to NumPy. ```bash pip install sysidentpy pandas # Optional: For neural networks and advanced features pip install sysidentpy["all"] ``` ## 2. Key Features SysIdentPy provides a flexible framework for building, predicting, validating, and visualizing nonlinear time series models. The modeling process involves several key decisions: defining the mathematical representation of the model, choosing the parameter estimation algorithm, selecting the appropriate model structure, and determining the prediction approach. The following features are available in SysIdentPy: ### Model Classes - NARMAX, NARX, NARMA, NAR, NFIR, ARMAX, ARX, AR, and their variants. ### Mathematical Representations - Polynomial - Neural - Fourier - Laguerre - Bernstein - Bilinear - Legendre - Hermite - HermiteNormalized You can also define advanced NARX models such as Bayesian and Gradient Boosting models using the GeneralNARX class, which provides seamless integration with various machine learning algorithms. ### Model Structure Selection Algorithms - Forward Regression Orthogonal Least Squares (FROLS) - Meta-model Structure Selection (MeMoSS) - Accelerated Orthogonal Least Squares (AOLS) - Entropic Regression ### Parameter Estimation Methods - Least Squares (LS) - Total Least Squares (TLS) - Recursive Least Squares (RLS) - Ridge Regression - Non-Negative Least Squares (NNLS) - Least Squares Minimal Residues (LSMR) - Bounded Variable Least Squares (BVLS) - Least Mean Squares (LMS) and its variants: - Affine LMS - LMS with Sign Error - Normalized LMS - LMS with Normalized Sign Error - LMS with Sign Regressor - Normalized LMS with Sign Sign - Leaky LMS - Fourth-Order LMS - Mixed Norm LMS ### Order Selection Criteria - Akaike Information Criterion (AIC) - Corrected Akaike Information Criterion (AICc) - Bayesian Information Criterion (BIC) - Final Prediction Error (FPE) - Khundrin's Law of Iterated Logarithm Criterion ### Prediction Methods - One-step ahead - n-steps ahead - Infinity-steps ahead ### Visualization Tools - Prediction plots - Residual analysis - Model structure visualization - Parameter visualization --- As you can see, SysIdentPy supports numerous model combinations, each tailored to different use cases. But don’t worry about picking the perfect combination right away—let’s start with the default settings to get you up and running quickly.
For comprehensive information on models, methods, and a wide range of examples and benchmarks implemented in SysIdentPy, check out our book:
Nonlinear System Identification and Forecasting: Theory and Practice With SysIdentPyThis book provides in-depth guidance to support your work with SysIdentPy.
🛠️ You can also explore the tutorials in the documentation for practical, hands-on examples.
Check chapter 9 of our companion book for more information on why autoregressive models need initial conditions to operate:
Nonlinear System Identification and Forecasting: Theory and Practice With SysIdentPyCheck chapter 9 of our companion book for more information on how infinity-steps, n-steps and one-step ahead prediction works:
Nonlinear System Identification and Forecasting: Theory and Practice With SysIdentPy