Java weka.classifiers Evaluation fields, constructors, methods, implement or subclass

Example usage for Java weka.classifiers Evaluation fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for weka.classifiers Evaluation.

The text is from its open source code.

Subclass

weka.classifiers.Evaluation has subclasses.
Click this link to see all its subclasses.

Constructor

Method

doubleareaUnderPRC(int classIndex)
Returns the area under precision-recall curve (AUPRC) for those predictions that have been collected in the evaluateClassifier(Classifier, Instances) method.
doubleareaUnderROC(int classIndex)
Returns the area under ROC for those predictions that have been collected in the evaluateClassifier(Classifier, Instances) method.
doubleavgCost()
Gets the average cost, that is, total cost of misclassifications (incorrect plus unclassified) over the total number of instances.
double[][]confusionMatrix()
Returns a copy of the confusion matrix.
doublecorrect()
Gets the number of instances correctly classified (that is, for which a correct prediction was made).
doublecorrelationCoefficient()
Returns the correlation coefficient if the class is numeric.
doublecoverageOfTestCasesByPredictedRegions()
Gets the coverage of the test cases by the predicted regions at the confidence level specified when evaluation was performed.
voidcrossValidateModel(Classifier classifier, Instances data, int numFolds, Random random)
Performs a (stratified if class is nominal) cross-validation for a classifier on a set of instances.
voidcrossValidateModel(Classifier classifier, Instances data, int numFolds, Random random, Object... forPredictionsPrinting)
Performs a (stratified if class is nominal) cross-validation for a classifier on a set of instances.
voidcrossValidateModel(String classifierString, Instances data, int numFolds, String[] options, Random random)
Performs a (stratified if class is nominal) cross-validation for a classifier on a set of instances.
doubleerrorRate()
Returns the estimated error rate or the root mean squared error (if the class is numeric).
double[]evaluateModel(Classifier classifier, Instances data, Object... forPredictionsPrinting)
Evaluates the classifier on a given set of instances.
StringevaluateModel(String classifierString, String[] options)
Evaluates a classifier with the options given in an array of strings.
StringevaluateModel(Classifier classifier, String[] options)
Evaluates a classifier with the options given in an array of strings.
doubleevaluateModelOnceAndRecordPrediction(Classifier classifier, Instance instance)
Evaluates the classifier on a single instance and records the prediction.
doubleevaluateModelOnceAndRecordPrediction(double[] dist, Instance instance)
Evaluates the supplied distribution on a single instance.
doubleevaluationForSingleInstance(double[] dist, Instance instance, boolean storePredictions)
Evaluates the supplied distribution on a single instance.
doublefalseNegativeRate(int classIndex)
Calculate the false negative rate with respect to a particular class.
doublefalsePositiveRate(int classIndex)
Calculate the false positive rate with respect to a particular class.
doublefMeasure(int classIndex)
Calculate the F-Measure with respect to a particular class.
InstancesgetHeader()
Returns the header of the underlying dataset.
AbstractEvaluationMetricgetPluginMetric(String name)
Get the named plugin evaluation metric
doubleincorrect()
Gets the number of instances incorrectly classified (that is, for which an incorrect prediction was made).
doublekappa()
Returns value of kappa statistic if class is nominal.
doubleKBInformation()
Return the total Kononenko & Bratko Information score in bits.
doubleKBMeanInformation()
Return the Kononenko & Bratko Information score in bits per instance.
doubleKBRelativeInformation()
Return the Kononenko & Bratko Relative Information score.
doublematthewsCorrelationCoefficient(int classIndex)
Calculates the matthews correlation coefficient (sometimes called phi coefficient) for the supplied class
doublemeanAbsoluteError()
Returns the mean absolute error.
doublemeanPriorAbsoluteError()
Returns the mean absolute error of the prior.
doublenumFalseNegatives(int classIndex)
Calculate number of false negatives with respect to a particular class.
doublenumFalsePositives(int classIndex)
Calculate number of false positives with respect to a particular class.
doublenumInstances()
Gets the number of test instances that had a known class value (actually the sum of the weights of test instances with known class value).
doublenumTrueNegatives(int classIndex)
Calculate the number of true negatives with respect to a particular class.
doublenumTruePositives(int classIndex)
Calculate the number of true positives with respect to a particular class.
doublepctCorrect()
Gets the percentage of instances correctly classified (that is, for which a correct prediction was made).
doublepctIncorrect()
Gets the percentage of instances incorrectly classified (that is, for which an incorrect prediction was made).
doublepctUnclassified()
Gets the percentage of instances not classified (that is, for which no prediction was made by the classifier).
doubleprecision(int classIndex)
Calculate the precision with respect to a particular class.
ArrayListpredictions()
Returns the predictions that have been collected.
doublepriorEntropy()
Calculate the entropy of the prior distribution.
doublerecall(int classIndex)
Calculate the recall with respect to a particular class.
doublerelativeAbsoluteError()
Returns the relative absolute error.
doublerootMeanPriorSquaredError()
Returns the root mean prior squared error.
doublerootMeanSquaredError()
Returns the root mean squared error.
doublerootRelativeSquaredError()
Returns the root relative squared error if the class is numeric.
voidsetDiscardPredictions(boolean value)
Sets whether to discard predictions, ie, not storing them for future reference via predictions() method in order to conserve memory.
voidsetPriors(Instances train)
Sets the class prior probabilities.
doubleSFEntropyGain()
Returns the total SF, which is the null model entropy minus the scheme entropy.
doubleSFMeanEntropyGain()
Returns the SF per instance, which is the null model entropy minus the scheme entropy, per instance.
doubleSFMeanPriorEntropy()
Returns the entropy per instance for the null model.
doubleSFMeanSchemeEntropy()
Returns the entropy per instance for the scheme.
doubleSFPriorEntropy()
Returns the total entropy for the null model.
doubleSFSchemeEntropy()
Returns the total entropy for the scheme.
doublesizeOfPredictedRegions()
Gets the average size of the predicted regions, relative to the range of the target in the training data, at the confidence level specified when evaluation was performed.
StringtoClassDetailsString()
Generates a breakdown of the accuracy for each class (with default title), incorporating various information-retrieval statistics, such as true/false positive rate, precision/recall/F-Measure.
StringtoClassDetailsString(String title)
Generates a breakdown of the accuracy for each class, incorporating various information-retrieval statistics, such as true/false positive rate, precision/recall/F-Measure.
StringtoCumulativeMarginDistributionString()
Output the cumulative margin distribution as a string suitable for input for gnuplot or similar package.
StringtoMatrixString()
Calls toMatrixString() with a default title.
StringtoMatrixString(String title)
Outputs the performance statistics as a classification confusion matrix.
StringtoSummaryString()
Calls toSummaryString() with no title and no complexity stats.
StringtoSummaryString(String title, boolean printComplexityStatistics)
Outputs the performance statistics in summary form.
StringtoSummaryString(boolean printComplexityStatistics)
Calls toSummaryString() with a default title.
doubletotalCost()
Gets the total cost, that is, the cost of each prediction times the weight of the instance, summed over all instances.
doubletrueNegativeRate(int classIndex)
Calculate the true negative rate with respect to a particular class.
doubletruePositiveRate(int classIndex)
Calculate the true positive rate with respect to a particular class.
doubleunclassified()
Gets the number of instances not classified (that is, for which no prediction was made by the classifier).
doubleunweightedMacroFmeasure()
Unweighted macro-averaged F-measure.
doubleunweightedMicroFmeasure()
Unweighted micro-averaged F-measure.
doubleweightedAreaUnderPRC()
Calculates the weighted (by class size) AUPRC.
doubleweightedAreaUnderROC()
Calculates the weighted (by class size) AUC.
doubleweightedFalseNegativeRate()
Calculates the weighted (by class size) false negative rate.
doubleweightedFalsePositiveRate()
Calculates the weighted (by class size) false positive rate.
doubleweightedFMeasure()
Calculates the macro weighted (by class size) average F-Measure.
doubleweightedMatthewsCorrelation()
Calculates the weighted (by class size) matthews correlation coefficient.
doubleweightedPrecision()
Calculates the weighted (by class size) precision.
doubleweightedRecall()
Calculates the weighted (by class size) recall.
doubleweightedTrueNegativeRate()
Calculates the weighted (by class size) true negative rate.
doubleweightedTruePositiveRate()
Calculates the weighted (by class size) true positive rate.