Example usage for weka.classifiers.evaluation ConfusionMatrix ConfusionMatrix

List of usage examples for weka.classifiers.evaluation ConfusionMatrix ConfusionMatrix

Introduction

In this page you can find the example usage for weka.classifiers.evaluation ConfusionMatrix ConfusionMatrix.

Prototype

public ConfusionMatrix(String[] classNames) 

Source Link

Document

Creates the confusion matrix with the given class names.

Usage

From source file:gr.auth.ee.lcs.evaluators.ConfusionMatrixEvaluator.java

License:Open Source License

/**
 * Constructor for creating a confusion matrix.
 * //from   w  w w .  j  a  va  2s.com
 * @param classNames
 *            the class names
 * @param set
 *            the set of instances to be used for creating the confusion
 *            matrix
 * @param lcs
 *            the LCS instance used
 */
public ConfusionMatrixEvaluator(final String[] classNames, final double[][] set,
        final AbstractLearningClassifierSystem lcs) {
    conf = new ConfusionMatrix(classNames);
    this.instances = set;
    myLcs = lcs;
}