class_docstr: Early stopping for deep model training
class_docstr_tok: ["Early","stopping","for","deep","model","training"]
code: def save_best_state_and_dict(self, val_loss, model):
      self.best_model_state_dict = model.state_dict()
  
      self.val_loss_min = val_loss
  
imports: import logging
  import numpy
label_desc: Use image node_id 3 for calling the EarlyStopping obj's underlying member method code with example usage: obj.save_best_state_and_dict(val_loss, model) without return types