title: How to use model.reset_states() in Keras?
body: <p>I have sequential data and I declared a LSTM model which predicts <code>y</code> with <code>x</code> in Keras. So if I call <code>model.predict(x1)</code> and <code>model.predict(x2)</code>, Is it correct to call <code>model.reset_states</code> between the two <code>predict()</code> explicitly? Does <code>model.reset_states</code> clear history of inputs, not weights, right?</p>
  
  <pre><code># 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]
  </code></pre>
  
  <p>And in my actual code, I use <code>model.evaluate()</code>. In <code>evaluate()</code>, is <code>reset_states</code> called implicitly for each data sample?</p>
  
  <pre><code>model.evaluate(dataX, dataY)
  </code></pre>