mse | R Documentation |
Compute Mean Square Error (MSE). The squared loss, in a sense, quantifies the error (or alternatively closeness) of the predicted label to the true label. When specialized to the case of probabilistic classifiers, this then can be interpreted as a reliability measure.
mse(y_real, y_predicted, rowsums = TRUE)
y_real |
Observed values (integers) to compare with (in matrix format for multiclass classification). |
y_predicted |
Predicte values (probabiblities by class). |
rowsums |
Whether in case of multiple classes in dataframe the metrics should be summed across classes before calculating the mean. |
integer value of Mean Square Error (MSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.