A dashboard illustrating bivariate time series forecasting with `ahead`

[This article was first published on T. Moudiki's Webpage - R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Here is a link to a dashboard illustrating bivariate time series forecasting with the package ahead:

https://thierry.shinyapps.io/ridge2shiny/

This dashboard is more specifically about ahead::ridge2f (in R) and ahead.Ridge2Regressor (in Python) hyperparameters’ meaning and impact. In the first two rows of the figure, everything related to ahead::ridge2f and ahead.Ridge2Regressor is colored in blue, in-sample and out-of-sample, whereas input series’ observed values are colored in red. Here are a few things you could try:

  • Illustrating overfitting: Leave every other parameter constant – to their default value. Set the number of lags to 3, and increase the number of nodes in the hidden layer nb_hidden. Observe what happens on the right (two first rows of the figure), when the input is perfectly fitted.
  • Illustrating shrinkage: Leave every other parameter constant – to their default value. Increase \(\lambda_1\), and observe the regression coefficients (third row of the figure) associated to the original features \(x_1, x_2, \ldots\) being shrinked towards zero.
  • Illustrating shrinkage 2: Leave every other parameter constant – to their default value. Increase \(\lambda_2\), and observe the regression coefficients (third row of the figure) associated to the hidden layer \(h_1, h_2, \ldots\) being shrinked towards zero.

image-title-here

To leave a comment for the author, please follow the link and comment on their blog: T. Moudiki's Webpage - R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)