List of usage examples for weka.classifiers.evaluation ConfusionMatrix ConfusionMatrix
public ConfusionMatrix(String[] classNames)
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; }