Takes the target value as input and returns a differentiable function which represents the error betweenthe input and the target value.
Takes the target value as input and returns a differentiable function which represents the error betweenthe input and the target value.
Returns half of the square of the norm induced by the scalar products structure on Real^n. The normalization factor 1/2 is there so that the residual corresponds to the gradient.