Learn R Programming

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

modeltime

Tidy time series forecasting with tidymodels.

Tutorials

Installation

CRAN version:

install.packages("modeltime")

Development version:

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

Why modeltime?

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

Forecast faster

A streamlined workflow for forecasting

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

Meet the modeltime ecosystem

Learn a growing ecosystem of forecasting packages

Modeltime is part of a growing ecosystem of Modeltime forecasting packages.

Summary

Modeltime is an amazing ecosystem for time series forecasting. But it can take a long time to learn:

  • Many algorithms
  • Ensembling and Resampling
  • Machine Learning
  • Deep Learning
  • Scalable Modeling: 10,000+ time series

Your probably thinking how am I ever going to learn time series forecasting. Here’s the solution that will save you years of struggling.

Take the High-Performance Forecasting Course

Become the forecasting expert for your organization

High-Performance Time Series Course

Time Series is Changing

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 by improving accuracy and scalability. Imagine what will happen to your career if you can provide your organization a “High-Performance Time Series Forecasting System” (HPTSF System).

How to Learn High-Performance Time Series Forecasting

I teach how to build a HPTFS System in my High-Performance Time Series Forecasting Course. You will learn:

  • Time Series Machine Learning (cutting-edge) with Modeltime - 30+ Models (Prophet, ARIMA, XGBoost, Random Forest, & many more)
  • 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.

Copy Link

Version

Install

install.packages('modeltime')

Monthly Downloads

2,009

Version

0.5.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Matt Dancho

Last Published

April 3rd, 2021

Functions in modeltime (0.5.1)

Arima_predict_impl

Bridge prediction function for ARIMA models
arima_xgboost_fit_impl

Bridge ARIMA-XGBoost Modeling function
arima_boost

General Interface for "Boosted" ARIMA Regression Models
add_modeltime_model

Add a Model into a Modeltime Table
Arima_fit_impl

Low-Level ARIMA function for translating modeltime to forecast
auto_arima_xgboost_fit_impl

Bridge ARIMA-XGBoost Modeling function
arima_xgboost_predict_impl

Bridge prediction Function for ARIMA-XGBoost Models
auto_arima_fit_impl

Low-Level ARIMA function for translating modeltime to forecast
arima_params

Tuning Parameters for ARIMA Models
arima_reg

General Interface for ARIMA Regression Models
default_forecast_accuracy_metric_set

Forecast Accuracy Metrics Sets
is_modeltime_model

Test if object contains a fitted modeltime model
m750

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

Test if a table contains residuals.
exp_smoothing

General Interface for Exponential Smoothing State Space Models
exp_smoothing_params

Tuning Parameters for Exponential Smoothing Models
mdl_time_forecast

Modeltime Forecast Helpers
ets_predict_impl

Bridge prediction function for Exponential Smoothing models
ets_fit_impl

Low-Level Exponential Smoothing function for translating modeltime to forecast
.prepare_transform

Prepare Recursive Transformations
m750_training_resamples

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

Low-Level NAIVE Forecast
combine_modeltime_tables

Combine multiple Modeltime Tables into a single Modeltime Table
modeltime_table

Scale forecast analysis with a Modeltime Table
modeltime_residuals_test

Apply Statistical Tests to Residuals
get_arima_description

Get model descriptions for Arima objects
nnetar_reg

General Interface for NNETAR Regression Models
modeltime_accuracy

Calculate Accuracy Metrics
nnetar_predict_impl

Bridge prediction function for ARIMA models
mdl_time_refit

Modeltime Refit Helpers
is_modeltime_table

Test if object is a Modeltime Table
nnetar_params

Tuning Parameters for NNETAR Models
nnetar_fit_impl

Low-Level NNETAR function for translating modeltime to forecast
is_calibrated

Test if a Modeltime Table has been calibrated
get_tbats_description

Get model descriptions for TBATS objects
create_xreg_recipe

Developer Tools for preparing XREGS (Regressors)
prophet_boost

General Interface for Boosted PROPHET Time Series Models
get_model_description

Get model descriptions for parsnip, workflows & modeltime objects
m750_splits

The results of train/test splitting the M750 Data
m750_models

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

Filter the last N rows (Tail) for multiple time series
predict.recursive

Recursive Model Predictions
parse_index

Developer Tools for parsing date and date-time information
prophet_fit_impl

Low-Level PROPHET function for translating modeltime to PROPHET
modeltime_calibrate

Preparation for forecasting
modeltime_forecast

Forecast future data
new_modeltime_bridge

Constructor for creating modeltime models
naive_reg

General Interface for NAIVE Forecast Models
naive_predict_impl

Bridge prediction function for NAIVE Models
snaive_fit_impl

Low-Level SNAIVE Forecast
prophet_reg

General Interface for PROPHET Time Series Models
snaive_predict_impl

Bridge prediction function for SNAIVE Models
prophet_xgboost_fit_impl

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

Refit one or more trained models to new data
predict.recursive_panel

Recursive Model Predictions
pull_parsnip_preprocessor

Pulls the Formula from a Fitted Parsnip Model Object
prophet_xgboost_predict_impl

Bridge prediction function for Boosted PROPHET models
modeltime_residuals

Extract Residuals Information
plot_modeltime_residuals

Interactive Residuals Visualization
pluck_modeltime_model

Extract model by model id in a Modeltime Table
update_model_description

Update the model description by model id in a Modeltime Table
type_sum.mdl_time_tbl

Succinct summary of Modeltime Tables
update_modeltime_model

Update the model by model id in a Modeltime Table
pull_modeltime_residuals

Extracts modeltime residuals data from a Modeltime Model
time_series_params

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

Tidy eval helpers
stlm_ets_fit_impl

Low-Level stlm function for translating modeltime to forecast
window_function_predict_impl

Bridge prediction function for window Models
window_reg

General Interface for Window Forecast Models
recursive

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

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

Bridge prediction function for ARIMA models
recipe_helpers

Developer Tools for processing XREGS (Regressors)
%>%

Pipe operator
plot_modeltime_forecast

Interactive Forecast Visualization
stlm_arima_fit_impl

Low-Level stlm function for translating modeltime to forecast
stlm_arima_predict_impl

Bridge prediction function for ARIMA models
table_modeltime_accuracy

Interactive Accuracy Tables
prophet_predict_impl

Bridge prediction function for PROPHET models
prophet_params

Tuning Parameters for Prophet Models
summarize_accuracy_metrics

Summarize Accuracy Metrics
window_function_fit_impl

Low-Level Window Forecast
xgboost_impl

Wrapper for parsnip::xgb_train
tbats_fit_impl

Low-Level tbats function for translating modeltime to forecast
tbats_predict_impl

Bridge prediction function for ARIMA models
xgboost_predict

Wrapper for xgboost::predict