Main Content

Classification margins for generalized additive model (GAM)

returns the Classification Margin (`m`

= margin(`Mdl`

,`Tbl`

,`ResponseVarName`

)`m`

)
for the generalized additive model `Mdl`

using the predictor data in
`Tbl`

and the true class labels in
`Tbl.ResponseVarName`

.

`m`

is returned as an *n*-by-1 numeric column
vector, where *n* is the number of observations in the predictor
data.

specifies whether to include interaction terms in computations. You can specify
`m`

= margin(___,'IncludeInteractions',`includeInteractions`

)`includeInteractions`

in addition to any of the input argument
combinations in the previous syntaxes.

`edge`

| `loss`

| `predict`

| `resubMargin`