API Reference
This is the class and function reference for pmdarima
. Please refer to
the full user guide for further details, as the class and
function raw specifications may not be enough to give full guidelines on their
uses.
pmdarima.arima
: ARIMA estimator & differencing tests
The pmdarima.arima
sub-module defines the ARIMA
estimator and the
auto_arima
function, as well as a set of tests of seasonality and
stationarity.
ARIMA estimator & statistical tests
User guide: See the Estimating the seasonal differencing term, D and Enforcing stationarity sections for further details.
|
Conduct an ADF test for stationarity. |
|
An ARIMA estimator. |
|
Automatically discover the optimal order for an ARIMA model. |
|
Conduct a CH test for seasonality. |
|
Conduct a KPSS test for stationarity. |
|
Perform an OCSB test of seasonality. |
|
Conduct a PP test for stationarity. |
|
Context manager to capture runtime context for stepwise mode. |
ARIMA auto-parameter selection
User guide: See the Tips to using auto_arima section for further details.
|
Automatically discover the optimal order for an ARIMA model. |
Differencing helpers
Test |
|
|
Estimate ARIMA differencing term, |
|
Estimate the seasonal differencing term, |
Seasonal decomposition
|
Decompose the time series into trend, seasonal, and random components. |
pmdarima.datasets
: Toy timeseries datasets
The pmdarima.datasets
submodule provides several different univariate time-
series datasets used in various examples and tests across the package. If you
would like to prototype a model, this is a good place to find easy-to-access data.
User guide: See the Toy time-series datasets section for further details.
Dataset loading functions
|
Monthly airline passengers. |
|
Quarterly beer production data. |
|
Quarterly residential data. |
|
Weekly US finished motor gasoline products |
|
Uniform heart-rate data. |
|
Annual numbers of lynx trappings for 1821–1934 in Canada. |
Load the microsoft stock data |
|
|
Monthly Sunspot Numbers, 1749 - 1983 |
|
Half-hourly electricity demand |
|
Australian total wine sales by wine makers in bottles <= 1 litre. |
|
Quarterly production of woollen yarn in Australia. |
pmdarima.metrics
: Time-series metrics
The metrics
submodule implements time-series metrics that are not
implemented in scikit-learn.
Metrics
|
Compute the Symmetric Mean Absolute Percentage Error. |
pmdarima.model_selection
: Cross-validation classes
The pmdarima.model_selection
submodule defines several different strategies
for cross-validating time series models
Cross validation & split utilities
|
Use a rolling forecast to perform cross validation |
|
Use a sliding window to perform cross validation |
|
Input checker utility for building a cross-validator |
|
Evaluate metric(s) by cross-validation and also record fit/score times. |
|
Generate cross-validated estimates for each input data point |
|
Evaluate a score by cross-validation |
|
Split arrays or matrices into sequential train and test subsets |
pmdarima.pipeline
: Pipelining transformers & ARIMAs
With the pipeline.Pipeline
class, we can pipeline transformers together and
into a final ARIMA stage.
Pipelines
|
A pipeline of transformers with an optional final estimator stage |
pmdarima.preprocessing
: Preprocessing transformers
The pmdarima.preprocessing
submodule provides a number of transformer
classes for pre-processing time series or exogenous arrays.
Endogenous transformers
Apply the Box-Cox transformation to an endogenous array |
|
|
Apply a log transformation to an endogenous array |
Exogenous transformers
|
Create exogenous date features |
|
Fourier terms for modeling seasonality |
pmdarima.utils
: Utilities
Utilities and array differencing functions used commonly across the package.
Array helper functions & metaestimators
|
Calculate the autocorrelation function. |
|
Cast as pandas Series. |
|
Imitates the |
|
Wrapper for |
|
Difference an array. |
|
Inverse the difference of an array. |
|
Wrap a delegated instance attribute function. |
Test a variable for iterability. |
|
|
Partial autocorrelation estimate. |
Plotting utilities & wrappers
|
Plot a series' auto-correlation. |
|
Plot the decomposition of a time series. |
|
Plot a series' auto-correlation as a line plot. |
|
Plot a series' partial auto-correlation as a line plot. |