Description Usage Arguments Value References Examples
The LSTM (Long Short-Term Memory) model is a Recurrent Neural Network (RNN) based architecture that is widely used for time series forecasting. Min-Max transformation has been used for data preparation. Here, we have used one LSTM layer as a simple LSTM model and a Dense layer is used as the output layer. Then, compile the model using the loss function, optimizer and metrics. This package is based on Keras and TensorFlow modules.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
ts |
Time series data |
xreg |
Exogenous variables |
tsLag |
Lag of time series data |
xregLag |
Lag of exogenous variables |
LSTMUnits |
Number of unit in LSTM layer |
DropoutRate |
Dropout rate |
Epochs |
Number of epochs |
CompLoss |
Loss function |
CompMetrics |
Metrics |
ActivationFn |
Activation function |
SplitRatio |
Training and testing data split ratio |
ValidationSplit |
Validation split ration |
TrainFittedValue: Fitted value of train data
TestPredictedValue: Predicted value of test data
AccuracyTable: RMSE and MAPE of train and test data
Paul, R.K. and Garai, S. (2021). Performance comparison of wavelets-based machine learning technique for forecasting agricultural commodity prices, Soft Computing, 25(20), 12857-12873
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.