(self, loss)
return self.convergence.is_converge(loss)
check if the loss converges
check if the loss converges
check if the loss converges
def check_convergence(self, loss):
        """
        check if the loss converges
        """
        LOGGER.info("check convergence")
        if self.convergence is None:
            self.convergence = converge_func_factory("diff", self.tol)

        return self.convergence.is_converge(loss)
def check_convergence ( self , loss ) : LOGGER . info ( "check convergence" ) if self . convergence is None : self . convergence = converge_func_factory ( "diff" , self . tol ) return self . convergence . is_converge ( loss )