summary.LSTMModel {TSLSTMplus}R Documentation

Summary of a Trained LSTM Model

Description

This function generates the summary of the LSTM model.

Usage

## S3 method for class 'LSTMModel'
summary(object, ...)

Arguments

object

An LSTMModel object containing a trained LSTM model along with normalization parameters and lag values.

...

Optional arguments, no use is contemplated right now

Value

A vector containing the forecasted values for the specified horizon.

Examples


  if (keras::is_keras_available()){
      y<-rnorm(100,mean=100,sd=50)
      x1<-rnorm(100,mean=50,sd=50)
      x2<-rnorm(100, mean=50, sd=25)
      x<-cbind(x1,x2)
      TSLSTM<-ts.lstm(ts=y,
                      xreg = x,
                      tsLag=2,
                      xregLag = 0,
                      LSTMUnits=5,
                      ScaleInput = 'scale',
                      ScaleOutput = 'scale',
                      Epochs=2)
      # Assuming TSLSTM is an LSTMModel object created using ts.lstm function
      summary(TSLSTM)
  }



[Package TSLSTMplus version 1.0.4 Index]