org.emmalanguage.lib.ml.optimization.loss
Represents a loss function of the form
E(w) = (wx - y)**2
where w: Weights x: Instance features y: Instance label
Compute the squared loss Loss function.
The weights that are used to evaluate the loss.
The instance that is evaluated.
The loss as measured by the least squares solution.
Compute the gradient of the squared loss Loss function.
dE(w) = (wx - y)x
The weights for which the gradient is computed.
The instance for which the gradient is computed.
The computed gradient.
Represents a loss function of the form
E(w) = (wx - y)**2
where w: Weights x: Instance features y: Instance label