title: early stopping in lstm with Python
body: <p>How to do early stopping in lstm.</p>
  
  <p>I am using python tensorflow but not keras.</p>
  
  <p>I would appreciate if you can provide a sample python  code.</p>
  
  <p>Regards</p>