Category "lstm"

LSTM is Showing very low accuracy and large loss

I am applying LSTM on a dataset that has 53699 entries for the training set and 23014 entries for the test set. The shape of the input training set is (53699,4)

Trying to copy a LSTM model - it's not working

I'm trying to copy a LSTM model that I found from here: Stock Market-Predict volume with LSTM model I'm getting stuck on the last line of code. Specifically, th

Tensorflow LSTM/GRU reset states once per epoch and not for each new batch

I train the following model based on GRU, note that I am passing the argument stateful=True to the GRU builder. class LearningToSurpriseModel(tf.keras.Model):

How to properly initialize TensorFlow GRU-layer with noisy states?

I wish to experiement with noisy GRU states instead of resetting them to zero for each batch. I try below an implementation. My initial code was resetting initi

Tensorflow - ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float)

Continuation from previous question: Tensorflow - TypeError: 'int' object is not iterable My training data is a list of lists each comprised of 1000 floats. For

Specifying the batch size when subclassing keras.model

I implement a model including a LSTM layer by subclassing the keras.Model. The following is the code I used. import tensorflow as tf from tensorflow import ker