title: Stop Training in Keras when Accuracy is already 1.0
body: <p>How will I stop Keras Training when the accuracy already reached 1.0? I tried monitoring loss value, but I haven't tried stopping the training when the accuracy is already 1.</p>
  
  <p>I tried the code below with no luck:</p>
  
  <pre><code>stopping_criterions =[
      EarlyStopping(monitor='loss', min_delta=0, patience = 1000),
      EarlyStopping(monitor='acc', base_line=1.0, patience =0)
  
  ]
  
  model.summary()
  model.compile(Adam(), loss='binary_crossentropy', metrics=['accuracy']) 
  model.fit(scaled_train_samples, train_labels, batch_size=1000, epochs=1000000, callbacks=[stopping_criterions], shuffle = True, verbose=2)
  </code></pre>
  
  <p>UPDATE: </p>
  
  <p>The training immediately stops at first epoch, even if the accuracy is still not <code>1.0</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/29Z3Z.png" rel="noreferrer"><img src="https://i.stack.imgur.com/29Z3Z.png" alt="enter image description here"></a></p>
  
  <p>Please help.</p>