Learn R Programming

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

modeltime

The time series forecasting package for the tidymodels ecosystem.

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.

Tutorials

Installation

Install the development version from with:

# install.packages("devtools")
devtools::install_github("business-science/modeltime")

Learning More

I teach modeltime in my Time Series Analysis & Forecasting Course. If interested in learning Pro-Forecasting Strategies then join my waitlist. The course is coming soon.

You will learn:

  • 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)
  • NEW - Deep Learning with RNNs (Competition Winner)
  • and more.

Signup for the Time Series Course waitlist

Copy Link

Version

Install

install.packages('modeltime')

Monthly Downloads

2,009

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Matt Dancho

Last Published

September 2nd, 2020

Functions in modeltime (0.1.0)

auto_arima_fit_impl

Low-Level ARIMA function for translating modeltime to forecast
arima_xgboost_fit_impl

Bridge ARIMA-XGBoost Modeling function
arima_reg

General Interface for ARIMA Regression Models
Arima_fit_impl

Low-Level ARIMA function for translating modeltime to forecast
arima_boost

General Interface for "Boosted" ARIMA Regression Models
Arima_predict_impl

Bridge prediction function for ARIMA models
arima_params

Tuning Parameters for ARIMA Models
auto_arima_xgboost_fit_impl

Bridge ARIMA-XGBoost Modeling function
ets_predict_impl

Bridge prediction function for Exponential Smoothing models
arima_workflow_tuned

Example ARIMA Tuning Results
get_model_description

Get model descriptions for parsnip, workflows & modeltime objects
exp_smoothing

General Interface for Exponential Smoothing State Space Models
modeltime_accuracy

Calculate Accuracy Metrics
mdl_time_refit

Modeltime Refit Helpers
default_forecast_accuracy_metric_set

Forecast Accuracy Metrics Sets
ets_fit_impl

Low-Level Exponential Smoothing function for translating modeltime to forecast
modeltime_residuals

Extract Residuals Information
modeltime_refit

Refit one or more trained models to new data
get_arima_description

Get model descriptions for Arima objects
exp_smoothing_params

Tuning Parameters for Exponential Smoothing Models
get_tbats_description

Get model descriptions for TBATS objects
modeltime_calibrate

Preparation for forecasting
arima_xgboost_predict_impl

Bridge prediction Function for ARIMA-XGBoost Models
nnetar_reg

General Interface for NNETAR Regression Models
prophet_params

Tuning Parameters for Prophet Models
nnetar_predict_impl

Bridge prediction function for ARIMA models
modeltime_table

Scale forecast analysis with a Modeltime Table
combine_modeltime_tables

Combine multiple Modeltime Tables into a single Modeltime Table
nnetar_fit_impl

Low-Level NNETAR function for translating modeltime to forecast
is_calibrated

Test if a Modeltime Table has been calibrated
is_modeltime_model

Test if object contains a fitted modeltime model
prophet_predict_impl

Bridge prediction function for PROPHET models
plot_modeltime_residuals

Interactive Residuals Visualization
seasonal_reg

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

Developer Tools for processing XREGS (Regressors)
plot_modeltime_forecast

Interactive Forecast Visualization
create_xreg_recipe

Developer Tools for preparing XREGS (Regressors)
mdl_time_forecast

Modeltime Forecast Helpers
is_modeltime_table

Test if object is a Modeltime Table
modeltime_forecast

Forecast future data
parse_index

Developer Tools for parsing date and date-time information
stlm_ets_fit_impl

Low-Level stlm function for translating modeltime to forecast
new_modeltime_bridge

Constructor for creating modeltime models
prophet_xgboost_fit_impl

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

Tuning Parameters for NNETAR Models
prophet_reg

General Interface for PROPHET Time Series Models
stlm_arima_fit_impl

Low-Level stlm function for translating modeltime to forecast
xgboost_predict

Wrapper for xgboost::predict
type_sum.mdl_time_tbl

Succinct summary of Modeltime Tables
xgboost_impl

Wrapper for parsnip::xgb_train
time_series_params

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

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

Bridge prediction function for Boosted PROPHET models
stlm_ets_predict_impl

Bridge prediction function for ARIMA models
stlm_arima_predict_impl

Bridge prediction function for ARIMA models
tbats_predict_impl

Bridge prediction function for ARIMA models
pull_modeltime_residuals

Extracts modeltime residuals data from a Modeltime Model
tidyeval

Tidy eval helpers
tbats_fit_impl

Low-Level tbats function for translating modeltime to forecast
prophet_boost

General Interface for Boosted PROPHET Time Series Models
%>%

Pipe operator
table_modeltime_accuracy

Interactive Accuracy Tables
prophet_fit_impl

Low-Level PROPHET function for translating modeltime to PROPHET