knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(xgboost) library(drake) library(tidymodels) library(modeltime) library(tidyverse) library(tidyquant) library(lubridate) library(timetk) library(modeltime.ensemble) library(dplyr) # R.utils::sourceDirectory("D:/R/bml_stocks/R/") R.utils::sourceDirectory("R/") interactive <- FALSE
readd(input_data) %>% plot_time_series(date, value, .interactive = interactive)
readd(splits) %>% tk_time_series_cv_plan() %>% plot_time_series_cv_plan(date, value, .interactive = FALSE)
readd(models_tbl)
readd(calibration_tbl)
readd(forecast_tbl) %>% plot_modeltime_forecast(.legend_max_width = 25, # For mobile screens .interactive = interactive)
readd(accuracy_tbl)$`_data`
readd(one_week_fc)
# # Tunning # readd(resamples_tscv) %>% # tk_time_series_cv_plan() %>% # plot_time_series_cv_plan( # date, value, # .facet_ncol = 2, # .interactive = FALSE # )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.