Calculates the L2 loss for a set of predictions.
This is equivalent to 0.5 * squared error, where the constant is standard from "Pattern Recognition and Machine Learning" by Bishop.
Optional
Calculates the L2 loss for a set of predictions.
This is equivalent to 0.5 * squared error, where the constant is standard from "Pattern Recognition and Machine Learning" by Bishop.