MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / isBestModel

Method isBestModel

script/dm/callbacks.py:102–106  ·  view source on GitHub ↗

Check if current model the best one. get early stop counter, if counter==0: it means current model has the best validation loss

(self)

Source from the content-addressed store, hash-verified

100 self.val_loss_min = val_loss
101
102 def isBestModel(self):
103 ''' Check if current model the best one.
104 get early stop counter, if counter==0: it means current model has the best validation loss
105 '''
106 return self.counter==0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected