loss
R2026bDescription
returns the mean squared error L = loss(mdl,tbl,ResponseVarName)L between the predictions of
mdl to the data in tbl, compared to the true
responses tbl.ResponseVarName. The interpretation of
L depends on the loss function (LossFun) and
weighting scheme (Weights). In general, better classifiers yield
smaller classification loss values. The formula for loss is described in
the section Weighted Mean Squared Error.
specifies options using one or more name-value arguments in addition to any of the input
argument combinations in the previous syntaxes. For example, you can specify the loss
function and whether to perform calculations in parallel.L = loss(___,Name=Value)