Package: RWInfoLSTM 0.1.0
RWInfoLSTM: Random Walk-Informed LSTM for Time Series Forecasting
Implements a Random Walk (RW)-informed Long Short-Term Memory (LSTM) network for univariate time series forecasting. The LSTM is trained on the full series with a composite loss that blends the usual mean squared error (MSE) between predictions and observations with the MSE between predictions and the fitted Random Walk, weighted by a parameter lambda (0 gives a standard LSTM, 1 gives a fully RW-guided LSTM). The Random Walk, either simple or with drift, is selected automatically by its in-sample root mean squared error (RMSE), and the lambda value with the lowest training RMSE is retained. The LSTM hyperparameters can be supplied manually or tuned by grid search, and functions for out-of-sample forecasting, accuracy measures and plots are provided. The methodology is motivated by hybrid forecasting framework proposed by Yeasin and Paul (2024) <doi:10.1007/s11227-023-05542-3>.
Authors:
RWInfoLSTM_0.1.0.tar.gz
RWInfoLSTM_0.1.0.zip(r-4.7-any)RWInfoLSTM_0.1.0.zip(r-4.6-any)
RWInfoLSTM_0.1.0.tar.gz(r-4.7-any)RWInfoLSTM_0.1.0.tar.gz(r-4.6-any)
RWInfoLSTM_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
RWInfoLSTM/json (API)
| # Install 'RWInfoLSTM' in R: |
| install.packages('RWInfoLSTM', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:afc8339f30. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 117 | ||
| source / vignettes | OK | 161 | ||
| linux-release | OK | 131 | ||
| windows-devel | OK | 104 | ||
| windows-release | OK | 102 | ||
| wasm-release | OK | 103 |
Exports:AccuracyRWiLplotlambda_rwilplotRWiLpredictRWiLRWiL
Dependencies:bitbit64callrclicorocpp11descfarverggplot2gluegtableisobandjsonlitelabelinglifecyclemagrittrotelprocessxpsR6RColorBrewerRcpprlangS7safetensorsscalestorchvctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Out-of-sample accuracy for RWiL forecasts vs actual values | AccuracyRWiL |
| Plot Training RMSE Across All Lambda Values (RWiL) | plotlambda_rwil |
| Plot RWiL: Actual vs Predicted (in-sample) + Out-of-sample Forecast | plotRWiL |
| Forecast h steps ahead from a fitted RWiL model | predictRWiL |
| Random Walk-Informed LSTM (RWiL) | RWiL |
