(self, stop_func)
Convenience function to create and add an early stopping callback.

        Arguments:
            stop_func (function): function to determine when to stop.
Convenience function to create and add an early stopping callback.
Convenience function to create and add an early stopping callback .
def add_early_stop_callback(self, stop_func):
        """
        Convenience function to create and add an early stopping callback.

        Arguments:
            stop_func (function): function to determine when to stop.
        """
        self.add_callback(EarlyStopCallback(stop_func))
def add_early_stop_callback ( self , stop_func ) : self . add_callback ( EarlyStopCallback ( stop_func ) )