I have sequential data and I declared a LSTM model which predicts y
with x
in Keras. So if I call model.predict(x1)
and model.predict(x2)
, Is it correct to call model.reset_states
between the two predict()
explicitly? Does model.reset_states
clear history of inputs, not weights, right?
# data1
x1 = [2,4,2,1,4]
y1 = [1,2,3,2,1]
# dat2
x2 = [5,3,2,4,5]
y2 = [5,3,2,3,2]
And in my actual code, I use model.evaluate()
. In evaluate()
, is reset_states
called implicitly for each data sample?
model.evaluate(dataX, dataY)