What’s new in pmdarima
As new releases of pmdarima are pushed out, the following list (introduced in v0.8.1) will document the latest features.
v2.0.5
Remove support for Python 3.7 (end-of-life 2023-06-23)
Remove support for Python 3.8 (end-of-life 2024-10-07)
v2.0.4
Pin numpy to
<2.0.0while work is done to support numpy>=2.0.0
v2.0.3
v2.0.2
Add support for Python 3.11
Change minimum numpy version to
1.21.2
v2.0.1
Add support for macOS with M1 chip
v2.0.0
Potentially breaking changes:
Use of the
exogenouskeyword (deprecated in 1.8.0) will now raise aTypeErrorUse of the
sarimax_kwargskeyword (deprecated in 1.5.1) will now raise aTypeErrorA falsey value for ARIMA’s
methodargument (deprecated pre-1.5.0) will now raise aValueErrorA falsey value for ARIMA’s
maxiterargument will now raise aValueError(warning since 1.5.0)pmdarimais no longer built for 32-bit architecturesmacOS images are built using macOS 11 instead of macOS 10.15
Bump numpy dependency to >= 1.21
Expose
fittedvaluesin the public API. See #493Add support for ARM64 architecture. See #434
Introduce new arg,
preserve_series, topmdarima.utils.check_endogthat will preserve or squeeze a PandasSeriesobject to preserve index information.Update Cython pinned version to include
!=0.29.31
v1.8.5
Add support for Python 3.10
Remove support for Python 3.6
v1.8.4
Add compatibility for
statsmodels0.13 and higher
v1.8.3
Fix a bug in
tsdisplaywhere a value oflag_maxlarger than the length of the series would create a cryptic numpy broadcasting error. This precondition will still cause an error, but now it is one the user can better understand. See #440Change
numpypin tonumpy>=1.19.3(and build on lowest supported version) to no longer limit users’ NumPy versions. This addresses #449Fix a bug where
scikit-learnversion1.0.0was raisingValueErrorwhen callingif_delegate_has_method, addressing #454
v1.8.2
Change
numpypin to~=1.19.0to avoid incompatibility issues, addressing #423
v1.8.1
v1.8.0
Wheels are no longer built for
pmdarimaon Python <3.6, and backward-compatibility is no longer guaranteed for older python versions.The
exogenousargument has been deprecated in favor ofX- See the RFC and the PR for more information. Beginning in version 2.0, theexogenousargument will raise an error.Migrate random searches into the auto-solvers interface
Random searches now perform unit root tests to prevent models with near non-invertible parameters
The default value of
suppress_warningshas changed toTrue. The primary reason for this is that most warnings emitted come from unit root tests, which are very noisy.DeprecationWarningsand other warnings generated from user input will still be emitted.Move
ModelFitWarningfrompmdarima.arima.warningstopmdarima.warningsFix a bug where the
pmdarima.model_selection.RollingForecastCVcould produce too few splits for the given input data.Change pin for
setuptoolsfrom<50.0.0to!=50.0.0, addressing #401Change pin for
statsmodelsfrom<0.12.0to!=0.12.0, addressing #376
v1.7.1
Pin
setuptools<50.0.0Pin
statsmodels<0.12Warn for Python versions <3.6. We will remove Python 3.5 support in version 1.8.0
v1.7.0
Address issue #341 where a combination of a large
mvalue andDvalue could difference an array into being too small to test stationarity in the ADF testFix issue #351 where a large value of
mcould prevent the seasonality test from completing.Fix issue #354 where models with near non-invertible roots could still be considered as candidate best-fits.
Remove legacy pickling behavior that separates the statsmodels object from the pmdarima object. This breaks backwards compatibility with versions pre-1.2.0.
Change default
with_interceptinpmdarima.arima.auto_arima()to'auto'rather thanTrue. This will behave much like the current behavior, where a truthiness check will still return True, but allows the stepwise search to selectively change it toFalsein the presence of certain differencing conditions.Inverse endog transformation is now supported when
return_conf_int=Trueon pipeline predictions (thanks to skyetim)Fix a bug where the
pmdarima.model_selection.SlidingWindowForecastCVcould produce too few splits for the given input data.Permit custom scoring metrics to be passed for out-of-sample scoring, as requested in #368.
v1.6.1
Pin Cython to be
>=0.29,<0.29.18Pin statsmodels to be
>=0.11
v1.6.0
Support newest versions of matplotlib
Add new level of
auto_arimaerror actions: “trace” which will warn for errors while dumping the original stacktrace.New featurizer:
pmdarima.preprocessing.DateFeaturizer. This can be used to create dummy and ordinal exogenous features and is useful when modeling pseudo-seasonal trends or time series with holes in them.Removes first-party conda distributions (see #326)
Raise a
ValueErrorinarima.predict_in_samplewhenstart < d
v1.5.3
Adds first-party conda distributions as requested in #173
Due to dependency limitations, we only support 64-bit architectures and Python 3.6 or 3.7
Adds Python 3.8 support as requested in #199
Added
pmdarima.datasets.load_gasoline()datasetAdded integer levels of verbosity in the
traceargumentAdded support for statsmodels 0.11+
Added
pmdarima.model_selection.cross_val_predict(), as requested in #291
v1.5.2
Added
pmdarima.show_versionsas a utility for issue filingFixed deprecation for
check_is_fittedin newer versions of scikit-learnAdds the
pmdarima.datasets.load_sunspots()method with R’s sunspots datasetAdds the
pmdarima.model_selection.train_test_split()methodFix bug where 1.5.1 documentation was labeled version “0.0.0”.
Fix bug reported in #271, where the use of
threading.localto store stepwise context information may have broken job schedulers.Fix bug reported in #272, where the new default value of
max_ordercan cause aValueErroreven in default cases whenstepwise=False.
v1.5.1
No longer use statsmodels’
ARIMAorARMAclass under the hood; only use theSARIMAXmodel, which cuts back on a lot of errors/warnings we saw in the past. (#211)Defaults in the
ARIMAclass that have changed as a result of #211:maxiteris now 50 (wasNone)methodis now ‘lbfgs’ (wasNone)seasonal_orderis now(0, 0, 0, 0)(wasNone)max_orderis now 5 (was 10) and is no longer used as a constraint whenstepwise=True
Correct bug where
aiccalways added 1 (for constant) to degrees of freedom, even whendf_modelaccounted for the constant term.New
pmdarima.arima.auto.StepwiseContextfeature for more control over fit duration (introduced by @kpsunkara in #221).Adds the
pmdarima.preprocessing.LogEndogTransformerclass as discussed in #205Exogenous arrays are no longer cast to numpy array by default, and will pass pandas frames through to the model. This keeps variable names intact in the summary (#222)
Added the
prefixparam to exogenous featurizers to allow the addition of meaningful names to engineered features.Added polyroot test of near non-invertibility when
stepwise=True. For models that are near non-invertible will be deprioritized in model selection as requested in #208.Removes
pmdarima.arima.ARIMA.add_new_samples, which was previously deprecated. Usepmdarima.arima.ARIMA.update()instead.The following args have been deprecated from the
pmdarima.arima.ARIMAclass as well aspmdarima.arima.auto_arima()and any other calling methods/classes:disp[1]callback[1]transparamssolvertyp
[1] These can still be passed to the
fitmethod via**fit_kwargs, but should no longer be passed to the model constructor.Added diff_inv function that is in parity with R’s implementation, diffinv, as requested in #180.
Added decompose function that is in parity with R’s implementation, decompose, as requested in #190
v1.4.0
Fixes #191, an issue where the OCSB test could raise
ValueError: negative dimensions are not allowed" in OCSB testAdd option to automatically inverse-transform endogenous transformations when predicting from pipelines (#197)
Add
predict_in_sampleto pipeline (#196)Parameterize
dtypeoption in datasets moduleAdds the
model_selectionsubmodule, which defines several different cross-validation classes as well as CV functions:Adds the
pmdarima.datasets.load_taylor()dataset
v1.3.0
v1.2.1
Pins scipy at 1.2.0 to avoid a statsmodels bug.
v1.2.0
Adds the
OCSBTestof seasonality, as discussed in #88Default value of
seasonal_testchanges from “ch” to “ocsb” inauto_arimaDefault value of
testchanges from “ch” to “ocsb” innsdiffsAdds benchmarking notebook and capabilities in
pytestplugins- Removes the following environment variables, which are now deprecated:
PMDARIMA_CACHEandPYRAMID_ARIMA_CACHEPMDARIMA_CACHE_WARN_SIZEandPYRAMID_ARIMA_CACHE_WARN_SIZEPYRAMID_MPL_DEBUGPYRAMID_MPL_BACKEND
Deprecates the
is_stationarymethod in tests of stationarity. This will be removed in v1.4.0. Useshould_diffinstead.Adds two new datasets:
airpassengers&austresWhen using
out_of_sample, the out-of-sample predictions are now stored under theoob_preds_attribute.- Adds a number of transformer classes including:
BoxCoxEndogTransformerFourierFeaturizer
Adds a
Pipelineclass resembling that of scikit-learn’s, which allows the stacking of transformers together.Adds a class wrapper for
auto_arima:AutoARIMA. This is allows auto-ARIMA to be used with pipelines.
v1.1.1
v1.1.1 is a patch release in response to #104
Deprecates the
ARIMA.add_new_observationsmethod. This method originally was designed to support updating the endogenous/exogenous arrays with new observations without changing the model parameters, but achieving this behavior for each of statsmodels’ARMA,ARIMAandSARIMAXclasses proved nearly impossible, given the extremely complex internals of statmodels estimators.Replaces
ARIMA.add_new_observationswithARIMA.update. This allows the user to update the model with new observations by takingmaxiternew steps from the existing model coefficients and allowing the MLE to converge to an updated set of model parameters.Changes default
maxiterto None, using 50 for seasonal models and 500 for non-seasonal models (as statsmodels does). The default value used to be 50 for all models.New behavior in
ARIMA.fitallowsstart_paramsandmaxiterto be passed as**fit_args, overriding the use of their corresponding instance attributes.
v1.1.0
Adds
ARIMA.plot_diagnosticsmethod, as requested in #49Adds new arg to
ARIMAconstructor andauto_arima:with_intercept(default is True).New default for
trendis no longer'c', it isNone.Adds
to_dictmethod toARIMAclass to address Issue #54ARIMA serialization no longer stores statsmodels results wrappers in the cache, but bundles them into the pickle file. This solves Issue #48 and only works on statsmodels 0.9.0+ since they’ve fixed a bug on their end.
The
'PMDARIMA_CACHE'and'PMDARIMA_CACHE_WARN_SIZE'environment variables are now deprecated, since they no longer need to be used.Added versioned documentation. All releases’ doc (from 0.9.0 onward) is now available at
alkaline-ml.com/pmdarima/<version>Fixes bug in
ADFTestwhereOLSwas computed withmethod="pinv"rather than"method=qr". This fix means better parity with R’s results. See #71 for more context.CHTestnow solves linear regression withnormalize=True. This solves #74Python 3.7 is now supported(!!)
v1.0.0
Wheels are no longer built for Python versions < 3.5. You may still be able to build from source, but support for 2.x python versions will diminish in future versions.
Migrates namespace from ‘pyramid-arima’ to ‘pmdarima’. This is due to the fact that a growing web-framework (also named Pyramid) is causing namespace collisions when both packages are installed on a machine. See Issue #34 for more detail.
Removes redundant Travis tests
Automates documentation build on Circle CI
Moves lots of the build/test functionality into the
Makefilefor ease.Warns for impending deprecation of various environment variable name changes. The following will be completely switched over in version 1.2.0:
'PYRAMID_MPL_DEBUG'will become'PMDARIMA_MPL_DEBUG''PYRAMID_MPL_BACKEND'will become'PMDARIMA_MPL_BACKEND''PYRAMID_ARIMA_CACHE_WARN_SIZE'will become'PMDARIMA_CACHE_WARN_SIZE'
v0.9.0
Explicitly catches case in
auto_arimawhere a value ofmthat is too large may over-estimateD, causing the time series to be differenced down to an empty array. This is now handled by raising a separate error for this case that better explains what happened.Re-pickling an
ARIMAwill no longer remove the location on disk of the cachedstatsmodelsARIMA models. Older versions encountered an issue where an older version of the model would be reinstated and immediately fail due to an OSError since the cached state no longer existed. This means that a user must be very intentional about clearing out the pyramid cache over time.Adds pyramid cache check on initial import to warn user if the cache size has grown too large.
If
dorDare explicitly defined forauto_arima(rather thanNone), do not raise an error if they exceedmax_dormax_D, respectively.Adds Circle CI for validating PyPy builds (rather than CPython)
Deploys python wheel for version 3.6 on Linux and Windows
Includes warning for upcoming package name change (
pmdarima).
v0.8.1
New
ARIMAinstance attributesThe
pkg_version_attribute (assigned on modelfit) is new as of version 0.8.0. On unpickling, if the current Pyramid version does not match the version under which it was serialized, aUserWarningwill be raised.
Addition of the
_config.pyfile at the top-level of the packageSpecifies the location of the ARIMA result pickles (see Serializing your ARIMA models)
Specifies the ARIMA result pickle name pattern
Fixes bug (Issue #30) in
ARIMAwhere using CV with differencing and no seasonality caused a dim mismatch in the model’s exog array and its endog arrayNew dataset: Woolyrnq (from R’s
forecastpackage).Visualization utilities available at the top level of the package:
plot_acfplot_pacfautocorr_plot
Updates documentation with significantly more examples and API references.
v0.7.0
out_of_sample_sizebehavior inpmdarima.arima.ARIMAIn prior versions, the
out_of_sample_size(OOSS) parameter misbehaved in the sense that it ended up fitting the model on the entire sample, and scoring the number specified. This behavior changed in v0.7.0. Going forward, when OOSS is not None, ARIMA models will be fit on \(n - OOSS\) samples, scored on the last OOSS samples, and the held-out samples are then added to the model.
Adds
add_new_samplesmethod topmdarima.arima.ARIMAThis method adds new samples to the model, effectively refreshing the point from which it creates new forecasts without impacting the model parameters.
Adds confidence intervals on
predictinpmdarima.arima.ARIMAWhen
return_conf_intis true, the confidence intervals will now be returned with the forecasts.
v0.6.5
pmdarima.arima.CHTestof seasonalityNo longer computes the \(U\) or \(V\) matrix in the SVD computation in the Canova-Hansen test. This makes the test much faster.