Implement MSE, binary cross-entropy, categorical cross-entropy, and Huber losses from supplied predictions and targets.