Learn R Programming

⚠️There's a newer version (1.3.0) of this package.Take me there.

modeltime

The time series forecasting package for the tidymodels ecosystem.

Tutorials

Installation

Install the CRAN version:

install.packages("modeltime")

Or, install the development version:

remotes::install_github("business-science/modeltime")

Features & Benefits

Modeltime unlocks time series models and machine learning in one framework

No need to switch back and forth between various frameworks. modeltime unlocks machine learning & classical time series analysis.

  • forecast: Use ARIMA, ETS, and more models coming (arima_reg(), arima_boost(), & exp_smoothing()).
  • prophet: Use Facebook’s Prophet algorithm (prophet_reg() & prophet_boost())
  • tidymodels: Use any parsnip model: rand_forest(), boost_tree(), linear_reg(), mars(), svm_rbf() to forecast

A streamlined workflow for forecasting

Modeltime incorporates a simple workflow (see Getting Started with Modeltime) for using best practices to forecast.

A streamlined workflow for forecasting

Learning More

My Talk on High-Performance Time Series Forecasting

Time series is changing. Businesses now need 10,000+ time series forecasts every day. This is what I call a High-Performance Time Series Forecasting System (HPTSF) - Accurate, Robust, and Scalable Forecasting.

High-Performance Forecasting Systems will save companies MILLIONS of dollars. Imagine what will happen to your career if you can provide your organization a “High-Performance Time Series Forecasting System” (HPTSF System).

I teach how to build a HPTFS System in my High-Performance Time Series Forecasting Course. If interested in learning Scalable High-Performance Forecasting Strategies then take my course. You will learn:

  • Time Series Machine Learning (cutting-edge) with Modeltime - 30+ Models (Prophet, ARIMA, XGBoost, Random Forest, & many more)
  • NEW - Deep Learning with GluonTS (Competition Winners)
  • Time Series Preprocessing, Noise Reduction, & Anomaly Detection
  • Feature engineering using lagged variables & external regressors
  • Hyperparameter Tuning
  • Time series cross-validation
  • Ensembling Multiple Machine Learning & Univariate Modeling Techniques (Competition Winner)
  • Scalable Forecasting - Forecast 1000+ time series in parallel
  • and more.

Unlock the High-Performance Time Series Forecasting Course

Copy Link

Version

Install

install.packages('modeltime')

Monthly Downloads

2,190

Version

0.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Matt Dancho

Last Published

November 23rd, 2020

Functions in modeltime (0.4.0)

arima_boost

General Interface for "Boosted" ARIMA Regression Models
auto_arima_xgboost_fit_impl

Bridge ARIMA-XGBoost Modeling function
auto_arima_fit_impl

Low-Level ARIMA function for translating modeltime to forecast
add_modeltime_model

Add a Model into a Modeltime Table
arima_params

Tuning Parameters for ARIMA Models
get_model_description

Get model descriptions for parsnip, workflows & modeltime objects
get_tbats_description

Get model descriptions for TBATS objects
arima_reg

General Interface for ARIMA Regression Models
create_xreg_recipe

Developer Tools for preparing XREGS (Regressors)
combine_modeltime_tables

Combine multiple Modeltime Tables into a single Modeltime Table
m750_training_resamples

The Time Series Cross Validation Resamples the M750 Data (Training Set)
Arima_fit_impl

Low-Level ARIMA function for translating modeltime to forecast
Arima_predict_impl

Bridge prediction function for ARIMA models
exp_smoothing

General Interface for Exponential Smoothing State Space Models
ets_predict_impl

Bridge prediction function for Exponential Smoothing models
new_modeltime_bridge

Constructor for creating modeltime models
modeltime_table

Scale forecast analysis with a Modeltime Table
exp_smoothing_params

Tuning Parameters for Exponential Smoothing Models
is_modeltime_table

Test if object is a Modeltime Table
m750

The 750th Monthly Time Series used in the M4 Competition
parse_index

Developer Tools for parsing date and date-time information
is_calibrated

Test if a Modeltime Table has been calibrated
get_arima_description

Get model descriptions for Arima objects
default_forecast_accuracy_metric_set

Forecast Accuracy Metrics Sets
ets_fit_impl

Low-Level Exponential Smoothing function for translating modeltime to forecast
%>%

Pipe operator
nnetar_predict_impl

Bridge prediction function for ARIMA models
is_modeltime_model

Test if object contains a fitted modeltime model
nnetar_reg

General Interface for NNETAR Regression Models
mdl_time_forecast

Modeltime Forecast Helpers
modeltime_calibrate

Preparation for forecasting
mdl_time_refit

Modeltime Refit Helpers
prophet_fit_impl

Low-Level PROPHET function for translating modeltime to PROPHET
prophet_reg

General Interface for PROPHET Time Series Models
prophet_boost

General Interface for Boosted PROPHET Time Series Models
type_sum.mdl_time_tbl

Succinct summary of Modeltime Tables
update_model_description

Update the model description by model id in a Modeltime Table
prophet_xgboost_fit_impl

Low-Level PROPHET function for translating modeltime to Boosted PROPHET
arima_xgboost_predict_impl

Bridge prediction Function for ARIMA-XGBoost Models
arima_xgboost_fit_impl

Bridge ARIMA-XGBoost Modeling function
recursive

Create a Recursive Time Series Model from a Parsnip or Workflow Regression Model
modeltime_accuracy

Calculate Accuracy Metrics
seasonal_reg

General Interface for Multiple Seasonality Regression Models (TBATS, STLM)
m750_models

Three (3) Models trained on the M750 Data (Training Set)
summarize_accuracy_metrics

Summarize Accuracy Metrics
table_modeltime_accuracy

Interactive Accuracy Tables
plot_modeltime_forecast

Interactive Forecast Visualization
nnetar_fit_impl

Low-Level NNETAR function for translating modeltime to forecast
plot_modeltime_residuals

Interactive Residuals Visualization
nnetar_params

Tuning Parameters for NNETAR Models
stlm_arima_fit_impl

Low-Level stlm function for translating modeltime to forecast
stlm_arima_predict_impl

Bridge prediction function for ARIMA models
m750_splits

The results of train/test splitting the M750 Data
modeltime_forecast

Forecast future data
predict.recursive

Recursive Model Predictions
pluck_modeltime_model

Extract model by model id in a Modeltime Table
pull_parsnip_preprocessor

Pulls the Formula from a Fitted Parsnip Model Object
time_series_params

Tuning Parameters for Time Series (ts-class) Models
tidyeval

Tidy eval helpers
recipe_helpers

Developer Tools for processing XREGS (Regressors)
xgboost_impl

Wrapper for parsnip::xgb_train
update_modeltime_model

Update the model by model id in a Modeltime Table
modeltime_refit

Refit one or more trained models to new data
modeltime_residuals

Extract Residuals Information
prophet_xgboost_predict_impl

Bridge prediction function for Boosted PROPHET models
pull_modeltime_residuals

Extracts modeltime residuals data from a Modeltime Model
tbats_fit_impl

Low-Level tbats function for translating modeltime to forecast
xgboost_predict

Wrapper for xgboost::predict
tbats_predict_impl

Bridge prediction function for ARIMA models
prophet_predict_impl

Bridge prediction function for PROPHET models
prophet_params

Tuning Parameters for Prophet Models
stlm_ets_predict_impl

Bridge prediction function for ARIMA models
stlm_ets_fit_impl

Low-Level stlm function for translating modeltime to forecast