mse
Description
The half mean squared error operation computes the half mean squared error loss between network predictions and target values for regression tasks.
The loss is calculated using the following formula
where Xi is the network prediction, Ti is the target value, M is the total number of responses in X (across all observations), and N is the total number of observations in X.
Note
To train a network using the trainnet
function with mean square error loss, set the loss function to
"mse"
.
Examples
Input Arguments
Output Arguments
Algorithms
Extended Capabilities
Version History
Introduced in R2019b