docstr: Checks if an update of the best index is recognized, i.e. compares to the previous test
  this would stop but does not if a new best index is correctly recognized in epoch 1.
docstr_tok: ["Checks","if","an","update","of","the","best","index","is","recognized",",","i.e",".","compares","to","the","previous","test","this","would","stop","but","does","not","if","a","new","best","index","is","correctly","recognized","in","epoch","1","."]
code: def test_check_early_stop_val_acc_patience_and_dont_stop_extended(
      self,
  ):
      """Checks if an update of the best index is recognized, i.e. compares to the previous test
      this would stop but does not if a new best index is correctly recognized in epoch 1.
      """
      stopping_handler = EarlyStopping(self.get_metric(), patience=3)
  
      self.assertFalse(
          stopping_handler.check_early_stop(
              1, {self.get_metric().name: 0.680}
          )
      )
      self.assertFalse(
          stopping_handler.check_early_stop(
              2, {self.get_metric().name: 0.693}
          )
      )
      self.assertFalse(
          stopping_handler.check_early_stop(
              3, {self.get_metric().name: 0.660}
          )
      )
      self.assertFalse(
          stopping_handler.check_early_stop(
              4, {self.get_metric().name: 0.670}
          )
      )
  
imports: import unittest
  from small_text.training.early_stopping import EarlyStopping, NoopEarlyStopping, EarlyStoppingAndCondition, EarlyStoppingOrCondition
  from small_text.training.metrics import Metric
label_desc: Use image node_id 11 for calling the AccuracyBasedEarlyStoppingTest obj's underlying member method code with example usage: obj.test_check_early_stop_val_acc_patience_and_dont_stop_extended() without return types