SquareLoss¶
-
class
getml.models.loss_functions.
SquareLoss
¶ Bases:
getml.models.loss_functions._LossFunction
Square loss (aka mean squared error (MSE))
Measures the loss by calculating the average of all squared deviations of the predictions from the observed (given) outcomes . Depending on the context this measure is also known as mean squared error (MSE) or mean squared deviation (MSD). deviation (MSD).
with being the number of samples, the observed outcome, and the estimate.
Note
Recommended loss function for regression problems.