margin
Syntax
Description
returns the classification margins
m = margin(mdl,tbl,ResponseVarName)m for the trained XGBoost classification model mdl
using the predictor data in table tbl and the true class labels in
tbl.ResponseVarName.
The classification margin is the difference between the classification score for the
true class and the maximal classification score for the false classes.
m is a column vector with the same number of rows as in
tbl.
specifies whether to perform computations in parallel.m = margin(___,UseParallel=UseParallel)
Examples
Input Arguments
More About
Extended Capabilities
Version History
Introduced in R2026a