Package edu.cmu.tetrad.classify
Interface ClassifierDiscrete
- All Known Implementing Classes:
ClassifierBayesUpdaterDiscrete
,ClassifierMbDiscrete
public interface ClassifierDiscrete
Interface implemented by classes that do discrete classification.
- Version:
- $Id: $Id
- Author:
- Frank Wimberly
-
Method Summary
Modifier and TypeMethodDescriptionint[]
classify()
classify.int[][]
crossTabulation.double
getPercentCorrect.
-
Method Details
-
classify
classify.
- Returns:
- an array with a classification (estimated value) of a target variable for each case in a DataSet.
- Throws:
InterruptedException
-
crossTabulation
int[][] crossTabulation()crossTabulation.
- Returns:
- the double subscripted int array containing the "confusion matrix" of coefs of estimated versus observed values of the target variable.
-
getPercentCorrect
double getPercentCorrect()getPercentCorrect.
- Returns:
- the percentage of cases where the target variable is correctly classified.
-