Time Series Forecasting using Recurrent Neural Networks by Keras
tsRNN
tries to provide a ready-to-use time series forecasting suite for recurrent neural networks. The package is enhanced by basic implementations of "simple" algorithms like ARIMA for comparison and provides accuracy measures as well as basic chart options for model comparisons.
You can install the released version of tsRNN from GitHub with:
remotes::install_github("thfuchs/tsRNN")
Note that tsRNN
heavily depends on Keras and the TensorFlow Deep Learning Framework. We currently guarantee the package to work with the following versions:
Software Package | Version ---------------- | -------- Keras | 2.4 TensorFlow | 2.3.1
Try to install both Keras and TensorFlow through the R package keras
to avoid difficulties due to misspecified installations:
library(keras)
install_keras(version = "2.4", tensorflow = "2.3.1")
Note: If you have a CUDA-enabled GPU set up on your machine, install the gpu-version of TensorFlow by specifiying tensorflow = "2.3.1-gpu"
.
This is a basic example which shows you how to solve a common problem:
library(tsRNN)
## basic example code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.