'Define the cost function and its gradient as lambda functions.'

def __init__(self):

    self.func = (lambda y, t: (self.be.sum(self.be.square((y - t)), axis=0) / 2.0))
    self.funcgrad = (lambda y, t: (y - t))
