So I have this function here, can anyone explain what is going on here? I know whats happening in the body of the function, but not how lambda functions work I am new to lambda functions, so I am not sure how or what the function is returning. what exactly are t and c?
def get_gradient(self, A, b, x, beta):
return (lambda t,c: (2*self.lambda_*x - A.T@(b*t)/c, sum(-b*t)/c))(1/(1+np.exp(b*(A@x+beta))), A.shape[0]
A is a matrix, b and x are column vectors and beta and lambda_ are scalars