Evaluate classifier performance
classperf
without input arguments displays the properties of a
classperformance
object. For more information, see classperformance Properties.
creates an empty cp
= classperf(groundTruth
)classperformance
object cp
using
the true labels groundTruth
for every observation in your data
set.
creates a cp
= classperf(groundTruth
,classifierOutput
)classperformance
object cp
using the true
labels groundTruth
, and then updates the object properties based on
the results of the classifier classifierOutput
. Use this syntax when
you want to know the classifier performance on a single validation run.
classperf(
updates the cp
,classifierOutput
)classperformance
object cp
with the
results of a classifier classifierOutput
. Use this syntax to update
the performance of the classifier iteratively, such as inside a for
loop for multiple cross-validation runs.
classperf(
uses cp
,classifierOutput
,testIdx
)testIdx
to compare the results of the classifier to the true
labels and update the object cp
. testIdx
represents a subset of the true labels (ground truth) in the current validation.
classperf(___,
specifies additional options with one or more Name,Value
)Name,Value
pair
arguments. Specify these options after all other input arguments.
classify
| classperformance Properties | crossvalind
| grp2idx