Classification error
L = loss(ens,tbl,ResponseVarName)
L = loss(ens,tbl,Y)
L = loss(ens,X,Y)
L = loss(___,Name,Value)
returns the classification error for ensemble L
= loss(ens
,tbl
,ResponseVarName
)ens
computed using
table of predictors tbl
and true class labels
tbl.ResponseVarName
.
returns the classification error for ensemble L
= loss(ens
,tbl
,Y
)ens
computed using
table of predictors tbl
and true class labels
Y
.
returns the classification error for ensemble L
= loss(ens
,X
,Y
)ens
computed using
matrix of predictors X
and true class labels
Y
.
computes classification error with additional options specified by one or more
L
= loss(___,Name,Value
)Name,Value
pair arguments, using any of the previous
syntaxes.
When computing the loss, loss
normalizes the class
probabilities in ResponseVarName
or Y
to the
class probabilities used for training, stored in the Prior
property
of ens
.
|
Classification ensemble created with |
|
Sample data, specified as a table. Each row of If you trained |
|
Response variable name, specified as the name of a variable in
You must specify |
|
Matrix of data to classify. Each row of If you trained |
|
Class labels of observations in |
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
Indices of weak learners in the ensemble ranging from
Default: | ||||||||||||||||
|
Loss function, specified as the comma-separated pair consisting of
For more details on loss functions, see Classification Loss. Default: | ||||||||||||||||
|
Meaning of the output
Default: | ||||||||||||||||
|
A logical matrix of size When Default: | ||||||||||||||||
|
Vector of observation weights, with nonnegative entries. The length of
Default: |
|
Classification
loss, by default the fraction of misclassified data.
|