How to use the pmdarima.datasets.load_airpassengers function in pmdarima

To help you get started, we’ve selected a few pmdarima examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alkaline-ml / pmdarima / examples / arima / example_seasonal_decomposition.py View on Github external
timeserie_beer = ausbeer[first_index:last_index]
decomposed = arima.decompose(timeserie_beer, 'additive', m=4)

# Plot the decomposed signal of ausbeer as a subplot

axes = utils.decomposed_plot(decomposed, figure_kwargs=figure_kwargs,
                             show=False)
axes[0].set_title("Ausbeer Seasonal Decomposition")


#
# MULTIPLICATIVE EXAMPLE: airpassengers
#

# Decompose the airpassengers dataset into trend, seasonal and random parts.
decomposed = arima.decompose(datasets.load_airpassengers(),
                             'multiplicative', m=12)

# Plot the decomposed signal of airpassengers as a subplot

axes = utils.decomposed_plot(decomposed, figure_kwargs=figure_kwargs,
                             show=False)
axes[0].set_title("Airpassengers Seasonal Decomposition")
github alkaline-ml / pmdarima / develop / _downloads / example_load_data.py View on Github external
# Author: Taylor Smith 

import pmdarima as pm

# #############################################################################
# You can load the datasets via load_
lynx = pm.datasets.load_lynx()
print("Lynx array:")
print(lynx)

# You can also get a series, if you rather
print("\nLynx series head:")
print(pm.datasets.load_lynx(as_series=True).head())

# Several other datasets:
air_passengers = pm.datasets.load_airpassengers()
austres = pm.datasets.load_austres()
heart_rate = pm.datasets.load_heartrate()
wineind = pm.datasets.load_wineind()
woolyrnq = pm.datasets.load_woolyrnq()
github DUanalytics / pyAnalytics / 88-TS / 88P_pmdarima_ds.py View on Github external
#-----------------------------
#libraries

import pmdarima as pm
###################################################################
# You can load the datasets via load_
lynx = pm.datasets.load_lynx()
print("Lynx array:")
print(lynx)

# You can also get a series, if you rather
print("\nLynx series head:")
print(pm.datasets.load_lynx(as_series=True).head())

# Several other datasets:
air_passengers = pm.datasets.load_airpassengers()
air_passengers
austres = pm.datasets.load_austres()
austres
heart_rate = pm.datasets.load_heartrate()
heart_rate
wineind = pm.datasets.load_wineind()
wineind
woolyrnq = pm.datasets.load_woolyrnq()
woolyrnq

#%%%% 
import pmdarima.datasets as pm

#Air Passengers
#The classic Box & Jenkins airline data. Monthly totals of international airline passengers, 1949 to 1960.
pm.load_airpassengers(True).head()
github DUanalytics / pyAnalytics / 88-TS / 88P_pmdarima_ds.py View on Github external
air_passengers
austres = pm.datasets.load_austres()
austres
heart_rate = pm.datasets.load_heartrate()
heart_rate
wineind = pm.datasets.load_wineind()
wineind
woolyrnq = pm.datasets.load_woolyrnq()
woolyrnq

#%%%% 
import pmdarima.datasets as pm

#Air Passengers
#The classic Box & Jenkins airline data. Monthly totals of international airline passengers, 1949 to 1960.
pm.load_airpassengers(True).head()
#7.2. Austres
#Numbers (in thousands) of Australian residents measured quarterly from March 1971 to March 1994. The sample consists of 89 records on a quarterly basis.
pm.load_austres(True).head()
#Heartrate - The heart rate data records sample of heartrate data borrowed from an MIT database. The sample consists of 150 evenly spaced (0.5 seconds) heartrate measurements.
pm.load_heartrate(True).head()
pm.load_heartrate(True)
#Lynx dataset records the number of skins of predators (lynx) that were collected over many years by the Hudson’s Bay Company (1821 - 1934). It’s commonly used for time-series benchmarking (Brockwell and Davis - 1991) and is built into R. The dataset exhibits a clear 10-year cycle.
pm.load_lynx(as_series=True).head()
pm.load_lynx(as_series=True)
#Wineind -This time-series records total wine sales by Australian wine makers in bottles <= 1 litre between Jan 1980 – Aug 1994. This dataset is found in the R forecast package.
pm.load_wineind(as_series=True).head()
pm.load_wineind(as_series=True)
#Woolyrnq - A time-series that records the quarterly production (in tonnes) of woollen yarn in Australia between Mar 1965 and Sep 1994. This dataset is found in the R forecast package.
pm.load_woolyrnq(True).head()
pm.load_woolyrnq(as_series=True)