I am dealing with a problem to predict electrical power output using LSTM in R. I found a very suitable code for my data here. But the problem is I do not understand what is meant by
- Units
- Input_shape
- layer_dropout
- layer_dropout
- loss
- adam
below is the code from where I have mentioned list of my question.
model %>%
layer_lstm(units = 100,
input_shape = c(datalags, 2),
batch_size = batch.size,
return_sequences = TRUE,
stateful = TRUE) %>%
layer_dropout(rate = 0.5) %>%
layer_lstm(units = 50,
return_sequences = FALSE,
stateful = TRUE) %>%
layer_dropout(rate = 0.5) %>%
layer_dense(units = 1)
model %>%
compile(loss = 'mae', optimizer = 'adam')
These arguments are defined in the reference documentation here:
https://keras.rstudio.com/reference/layer_lstm.html