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

Version

1.2.8

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Matt Dancho

Last Published

September 2nd, 2023

Functions in modeltime (1.2.8)

get_arima_description

Get model descriptions for Arima objects
exp_smoothing

General Interface for Exponential Smoothing State Space Models
auto_adam_fit_impl

Low-Level ADAM function for translating modeltime to forecast
maape_vec

Mean Arctangent Absolute Percentage Error
drop_modeltime_model

Drop a Model from a Modeltime Table
maape

Mean Arctangent Absolute Percentage Error
new_modeltime_bridge

Constructor for creating modeltime models
modeltime_nested_select_best

Select the Best Models from Nested Modeltime Table
get_tbats_description

Get model descriptions for TBATS objects
modeltime_nested_fit

Fit Tidymodels Workflows to Nested Time Series
modeltime_forecast

Forecast future data
get_model_description

Get model descriptions for parsnip, workflows & modeltime objects
modeltime_refit

Refit one or more trained models to new data
m750_training_resamples

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

The results of train/test splitting the M750 Data
is_calibrated

Test if a Modeltime Table has been calibrated
plot_modeltime_residuals

Interactive Residuals Visualization
.prepare_transform

Prepare Recursive Transformations
ets_fit_impl

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

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

Test if a table contains residuals.
nnetar_fit_impl

Low-Level NNETAR function for translating modeltime to forecast
make_ts_splits

Generate a Time Series Train/Test Split Indicies
exp_smoothing_params

Tuning Parameters for Exponential Smoothing Models
mdl_time_forecast

Modeltime Forecast Helpers
m750_models

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

Bridge prediction function for Exponential Smoothing models
load_namespace

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

Preparation for forecasting
modeltime_fit_workflowset

Fit a workflowset object to one or multiple time series
log_extractors

Log Extractor Functions for Modeltime Nested Tables
modeltime_nested_forecast

Modeltime Nested Forecast
recipe_helpers

Developer Tools for processing XREGS (Regressors)
metric_sets

Forecast Accuracy Metrics Sets
m750

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

General Interface for Temporal Hierarchical Forecasting (THIEF) Models
modeltime_accuracy

Calculate Accuracy Metrics
modeltime_residuals_test

Apply Statistical Tests to Residuals
modeltime_residuals

Extract Residuals Information
modeltime_nested_refit

Refits a Nested Modeltime Table
recursive

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

Test if object is a Modeltime Table
temporal_hier_predict_impl

Bridge prediction function for TEMPORAL HIERARCHICAL models
naive_predict_impl

Bridge prediction function for NAIVE Models
is_modeltime_model

Test if object contains a fitted modeltime model
croston_predict_impl

Bridge prediction function for CROSTON models
nnetar_params

Tuning Parameters for NNETAR Models
pluck_modeltime_model

Extract model by model id in a Modeltime Table
naive_reg

General Interface for NAIVE Forecast Models
prophet_predict_impl

Bridge prediction function for PROPHET models
smooth_fit_impl

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

Bridge prediction function for ARIMA models
prophet_fit_impl

Low-Level PROPHET function for translating modeltime to PROPHET
nnetar_reg

General Interface for NNETAR Regression Models
seasonal_reg

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

Tuning Parameters for Prophet Models
temporal_hierarchy_params

Tuning Parameters for TEMPORAL HIERARCHICAL Models
temporal_hier_fit_impl

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

Bridge prediction function for SNAIVE Models
stlm_arima_fit_impl

Low-Level stlm function for translating modeltime to forecast
prophet_reg

General Interface for PROPHET Time Series Models
summarize_accuracy_metrics

Summarize Accuracy Metrics
tbats_predict_impl

Bridge prediction function for ARIMA models
snaive_fit_impl

Low-Level SNAIVE Forecast
window_reg

General Interface for Window Forecast Models
time_series_params

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

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

Interactive Forecast Visualization
mdl_time_refit

Modeltime Refit Helpers
type_sum.mdl_time_tbl

Succinct summary of Modeltime Tables
stlm_ets_predict_impl

Bridge prediction function for ARIMA models
table_modeltime_accuracy

Interactive Accuracy Tables
modeltime_table

Scale forecast analysis with a Modeltime Table
smooth_predict_impl

Bridge prediction function for Exponential Smoothing models
prophet_xgboost_predict_impl

Bridge prediction function for Boosted PROPHET models
parse_index

Developer Tools for parsing date and date-time information
parallel_start

Start parallel clusters using parallel package
prep_nested

Prepared Nested Modeltime Data
xgboost_impl

Wrapper for parsnip::xgb_train
pull_modeltime_residuals

Extracts modeltime residuals data from a Modeltime Model
prophet_boost

General Interface for Boosted PROPHET Time Series Models
pull_parsnip_preprocessor

Pulls the Formula from a Fitted Parsnip Model Object
theta_fit_impl

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

Tidy eval helpers
update_model_description

Update the model description by model id in a Modeltime Table
%>%

Pipe operator
prophet_xgboost_fit_impl

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

Bridge prediction function for window Models
update_modeltime_model

Update the model by model id in a Modeltime Table
xgboost_predict

Wrapper for xgboost::predict
stlm_ets_fit_impl

Low-Level stlm function for translating modeltime to forecast
naive_fit_impl

Low-Level NAIVE Forecast
stlm_arima_predict_impl

Bridge prediction function for ARIMA models
window_function_fit_impl

Low-Level Window Forecast
tbats_fit_impl

Low-Level tbats function for translating modeltime to forecast
theta_predict_impl

Bridge prediction function for THETA models
adam_params

Tuning Parameters for ADAM Models
adam_fit_impl

Low-Level ADAM function for translating modeltime to forecast
add_modeltime_model

Add a Model into a Modeltime Table
adam_reg

General Interface for ADAM Regression Models
Arima_predict_impl

Bridge prediction function for ARIMA models
arima_boost

General Interface for "Boosted" ARIMA Regression Models
Auto_adam_predict_impl

Bridge prediction function for AUTO ADAM models
create_xreg_recipe

Developer Tools for preparing XREGS (Regressors)
create_model_grid

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

Combine multiple Modeltime Tables into a single Modeltime Table
control_modeltime

Control aspects of the training process
Adam_predict_impl

Bridge prediction function for ADAM models
Arima_fit_impl

Low-Level ARIMA function for translating modeltime to forecast
arima_reg

General Interface for ARIMA Regression Models
auto_arima_fit_impl

Low-Level ARIMA function for translating modeltime to forecast
auto_arima_xgboost_fit_impl

Bridge ARIMA-XGBoost Modeling function
arima_xgboost_fit_impl

Bridge ARIMA-XGBoost Modeling function
arima_params

Tuning Parameters for ARIMA Models
arima_xgboost_predict_impl

Bridge prediction Function for ARIMA-XGBoost Models