(self)
Define the cost function and its gradient as lambda functions.
Define the cost function and its gradient as lambda functions.
Define the cost function and its gradient as lambda functions .
def __init__(self):
        """
        Define the cost function and its gradient as lambda functions.
        """
        self.func = lambda y, t: self.be.sum(self.be.square(y - t), axis=0) / 2.
        self.funcgrad = lambda y, t: (y - t)
def __init__ ( self ) : self . func = lambda y , t : self . be . sum ( self . be . square ( y - t ) , axis = 0 ) / 2. self . funcgrad = lambda y , t : ( y - t )