Relative Content

Tag Archive for pythonrtensorflowkeraslstm

What’s my mistake in layering this LSTM? (Keras, R)

# DEFINE THE LSTM MODEL #input_shape <- c(52.0, 5.0) #input_shape = c(seq_length, ncol(close_data)) #layer_input(shape = input_shape) %>% model <- keras_model_sequential() %>% layer_lstm(units = 50, return_sequences = TRUE, input_shape = c(52, 5)) %>% layer_lstm(units = 50) %>% layer_dense(units = 1) the code above keeps yielding this error: Error in py_call_impl(callable, call_args$unnamed, call_args$named) : ValueError: Only input […]

What’s my mistake in layering this LSTM? (Keras, R)

# DEFINE THE LSTM MODEL #input_shape <- c(52.0, 5.0) #input_shape = c(seq_length, ncol(close_data)) #layer_input(shape = input_shape) %>% model <- keras_model_sequential() %>% layer_lstm(units = 50, return_sequences = TRUE, input_shape = c(52, 5)) %>% layer_lstm(units = 50) %>% layer_dense(units = 1) the code above keeps yielding this error: Error in py_call_impl(callable, call_args$unnamed, call_args$named) : ValueError: Only input […]