Learn R Programming

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

modeltime

Tidy time series forecasting with tidymodels.

Quickstart Video

For those that prefer video tutorials, we have an 11-minute YouTube Video that walks you through the Modeltime Workflow.

Tutorials

Installation

CRAN version:

install.packages("modeltime", dependencies = TRUE)

Development version:

remotes::install_github("business-science/modeltime", dependencies = TRUE)

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,190

Version

1.1.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Matt Dancho

Last Published

January 12th, 2022

Functions in modeltime (1.1.1)

adam_fit_impl

Low-Level ADAM function for translating modeltime to forecast
arima_params

Tuning Parameters for ARIMA Models
add_modeltime_model

Add a Model into a Modeltime Table
Arima_fit_impl

Low-Level ARIMA function for translating modeltime to forecast
Arima_predict_impl

Bridge prediction function for ARIMA models
arima_boost

General Interface for "Boosted" ARIMA Regression Models
adam_reg

General Interface for ADAM Regression Models
Adam_predict_impl

Bridge prediction function for ADAM models
adam_params

Tuning Parameters for ADAM Models
Auto_adam_predict_impl

Bridge prediction function for AUTO ADAM models
create_model_grid

Helper to make parsnip model specs from a dials parameter grid
auto_arima_fit_impl

Low-Level ARIMA function for translating modeltime to forecast
arima_reg

General Interface for ARIMA Regression Models
log_extractors

Log Extractor Functions for Modeltime Nested Tables
maape.data.frame

Mean Arctangent Absolute Percentage Error
maape

Mean Arctangent Absolute Percentage Error
load_namespace

These are not intended for use by the general public.
m750_splits

The results of train/test splitting the M750 Data
combine_modeltime_tables

Combine multiple Modeltime Tables into a single Modeltime Table
ets_fit_impl

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

Control aspects of the training process
.prepare_transform

Prepare Recursive Transformations
m750_training_resamples

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

Bridge ARIMA-XGBoost Modeling function
ets_predict_impl

Bridge prediction function for Exponential Smoothing models
create_xreg_recipe

Developer Tools for preparing XREGS (Regressors)
modeltime_nested_select_best

Select the Best Models from Nested Modeltime Table
arima_xgboost_fit_impl

Bridge ARIMA-XGBoost Modeling function
croston_predict_impl

Bridge prediction function for CROSTON models
is_modeltime_model

Test if object contains a fitted modeltime model
is_calibrated

Test if a Modeltime Table has been calibrated
croston_fit_impl

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

Refit one or more trained models to new data
parallel_start

Start parallel clusters using parallel package
modeltime_fit_workflowset

Fit a workflowset object to one or multiple time series
modeltime_calibrate

Preparation for forecasting
parse_index

Developer Tools for parsing date and date-time information
exp_smoothing

General Interface for Exponential Smoothing State Space Models
plot_modeltime_residuals

Interactive Residuals Visualization
pluck_modeltime_model

Extract model by model id in a Modeltime Table
auto_adam_fit_impl

Low-Level ADAM function for translating modeltime to forecast
modeltime_accuracy

Calculate Accuracy Metrics
get_tbats_description

Get model descriptions for TBATS objects
modeltime_forecast

Forecast future data
modeltime_nested_fit

Fit Tidymodels Workflows to Nested Time Series
get_model_description

Get model descriptions for parsnip, workflows & modeltime objects
maape_vec

Mean Arctangent Absolute Percentage Error
nnetar_reg

General Interface for NNETAR Regression Models
metric_sets

Forecast Accuracy Metrics Sets
arima_xgboost_predict_impl

Bridge prediction Function for ARIMA-XGBoost Models
exp_smoothing_params

Tuning Parameters for Exponential Smoothing Models
make_ts_splits

Generate a Time Series Train/Test Split Indicies
modeltime_nested_forecast

Modeltime Nested Forecast
get_arima_description

Get model descriptions for Arima objects
m750

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

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

Bridge prediction function for ARIMA models
recipe_helpers

Developer Tools for processing XREGS (Regressors)
prep_nested

Prepared Nested Modeltime Data
naive_predict_impl

Bridge prediction function for NAIVE Models
panel_tail

Filter the last N rows (Tail) for multiple time series
modeltime_nested_refit

Refits a Nested Modeltime Table
recursive

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

General Interface for NAIVE Forecast Models
is_residuals

Test if a table contains residuals.
stlm_ets_fit_impl

Low-Level stlm function for translating modeltime to forecast
mdl_time_forecast

Modeltime Forecast Helpers
time_series_params

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

Test if object is a Modeltime Table
mdl_time_refit

Modeltime Refit Helpers
modeltime_table

Scale forecast analysis with a Modeltime Table
%>%

Pipe operator
type_sum.mdl_time_tbl

Succinct summary of Modeltime Tables
nnetar_predict_impl

Bridge prediction function for ARIMA models
naive_fit_impl

Low-Level NAIVE Forecast
plot_modeltime_forecast

Interactive Forecast Visualization
nnetar_params

Tuning Parameters for NNETAR Models
prophet_fit_impl

Low-Level PROPHET function for translating modeltime to PROPHET
modeltime_residuals

Extract Residuals Information
prophet_predict_impl

Bridge prediction function for PROPHET models
prophet_params

Tuning Parameters for Prophet Models
smooth_predict_impl

Bridge prediction function for Exponential Smoothing models
tbats_predict_impl

Bridge prediction function for ARIMA models
snaive_fit_impl

Low-Level SNAIVE Forecast
prophet_reg

General Interface for PROPHET Time Series Models
modeltime_residuals_test

Apply Statistical Tests to Residuals
pull_parsnip_preprocessor

Pulls the Formula from a Fitted Parsnip Model Object
table_modeltime_accuracy

Interactive Accuracy Tables
seasonal_reg

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

Low-Level tbats function for translating modeltime to forecast
pull_modeltime_residuals

Extracts modeltime residuals data from a Modeltime Model
smooth_fit_impl

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

Bridge prediction function for ARIMA models
summarize_accuracy_metrics

Summarize Accuracy Metrics
temporal_hierarchy_params

Tuning Parameters for TEMPORAL HIERARCHICAL Models
theta_fit_impl

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

Low-Level Temporaral Hierarchical function for translating modeltime to forecast
prophet_xgboost_fit_impl

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

General Interface for Boosted PROPHET Time Series Models
prophet_xgboost_predict_impl

Bridge prediction function for Boosted PROPHET models
new_modeltime_bridge

Constructor for creating modeltime models
xgboost_predict

Wrapper for xgboost::predict
window_reg

General Interface for Window Forecast Models
xgboost_impl

Wrapper for parsnip::xgb_train
update_modeltime_model

Update the model by model id in a Modeltime Table
update_model_description

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

Low-Level NNETAR function for translating modeltime to forecast
predict.recursive_panel

Recursive Model Predictions
predict.recursive

Recursive Model Predictions
theta_predict_impl

Bridge prediction function for THETA models
tidyeval

Tidy eval helpers
stlm_arima_fit_impl

Low-Level stlm function for translating modeltime to forecast
snaive_predict_impl

Bridge prediction function for SNAIVE Models
temporal_hier_predict_impl

Bridge prediction function for TEMPORAL HIERARCHICAL models
temporal_hierarchy

General Interface for Temporal Hierarchical Forecasting (THIEF) Models
window_function_fit_impl

Low-Level Window Forecast
window_function_predict_impl

Bridge prediction function for window Models