resubPredict
Classify observations in ensemble of classification models
Syntax
label = resubPredict(ens)
[label,score]
= resubPredict(ens)
[label,score]
= resubPredict(ens,Name,Value)
Description
returns the labels label
= resubPredict(ens
)ens
predicts for the data
ens.X
. label
is the predictions of
ens
on the data that fitcensemble
used to create ens
.
[
also returns scores for all classes.label
,score
]
= resubPredict(ens
)
[
finds resubstitution predictions with additional options specified by one or more
label
,score
]
= resubPredict(ens
,Name,Value
)Name,Value
pair arguments.
Input Arguments
|
A classification ensemble created with |
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
| Indices of weak learners in the ensemble ranging from Default: |
| Indication to perform inference in parallel, specified as Default: |
Output Arguments
|
The response |
|
An |