ENVIEvaluateClassifierTask
This task takes in truth examples, truth class values, and a classifier. It uses the classifier and truth examples (ignoring the truth class values) to calculate predicted class values. Then it computes a confusion matrix and accuracy metrics between the truth and predicted class values.
For descriptions of examples and class values, see Prepare Data for Classification.
The following diagrams show typical workflows where this task is used:
Example
See the following topics:
Syntax
Result = ENVITask('EvaluateClassifier')
Input properties (Set, Get): CLASSIFIER, EXAMPLES, OUTPUT_CONFUSION_MATRIX_URI
Output properties (Get only): OUTPUT_CONFUSION_MATRIX
Properties marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Properties marked as "Get" are those whose values you can retrieve but not set.
Methods
This task inherits the following methods from ENVITask:
AddParameter
Execute
Parameter
ParameterNames
RemoveParameter
Properties
This task inherits the following properties from ENVITask:
COMMUTE_ON_DOWNSAMPLE
COMMUTE_ON_SUBSET
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
TAGS
This task also contains the following properties:
CLASSIFIER (required)
Specify an ENVISoftmaxRegressionClassifier or ENVISVMClassifier object.
EXAMPLES (required)
Specify an input ENVIExamples object.
OUTPUT_CONFUSION_MATRIX
This is a reference to the output ENVIConfusionMatrix object.
OUTPUT_CONFUSION_MATRIX_URI (optional)
Specify a string with the fully qualified filename and path of the output object. If you do not specify this property, the output object (.epo) is only temporary. Once ENVI is closed, it deletes the temporary file. Restore the object later using ENVIRestoreObject.ENVIConfusionMatrix is a persistable object that can be saved and restored.
Version History
API Version
3.3
See Also
ENVITask, ENVIEvaluateClassifier, ENVISoftmaxRegressionClassifier, ENVISVMClassifier, ENVIExamples, ENVIConfusionMatrix, ENVIRestoreObject