calibrate_and_plot | R Documentation |
Perform modeltime calibrate and plot function at the same time.
calibrate_and_plot(..., type = "testing")
... |
A fitted model object that is either:
|
type |
A test data set |
-The results of calibration and plot are used to evaluate models
library(tidyverse) library(lubridate) library(timetk) library(parsnip) library(rsample) library(modeltime) # Data data_prepared_tbl <- m4_monthly %>% filter(id == "M750") # Split Data 80/20 splits <- initial_time_split(data_prepared_tbl, prop = 0.9) # Model: auto_arima model_fit_arima <- arima_reg() %>% set_engine(engine = "auto_arima") %>% fit(value ~ date, data = training(splits)) # Calibrate and plot calibrate_and_plot(model_fit_arima, type="testing")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.