#include "loss.h"
Functions | |
Variable | MSELoss (const std::vector< Variable > &predictions, const std::vector< double > &targets) |
Variable MSELoss | ( | const std::vector< Variable > & | predictions, |
const std::vector< double > & | targets | ||
) |
Calculates the Mean Squared Error (MSE) loss between a vector of predictions and a vector of targets.
predictions | The vector of predicted values. |
targets | The vector of target values. |