jsat.classifiers.evaluation
Class MatthewsCorrelationCoefficient
- java.lang.Object
-
- jsat.classifiers.evaluation.SimpleBinaryClassMetric
-
- jsat.classifiers.evaluation.MatthewsCorrelationCoefficient
-
- All Implemented Interfaces:
- java.io.Serializable, ClassificationScore
public class MatthewsCorrelationCoefficient extends SimpleBinaryClassMetric
Evaluates a classifier based on Mathews Correlation Coefficient- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MatthewsCorrelationCoefficient()MatthewsCorrelationCoefficient(MatthewsCorrelationCoefficient toClone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description MatthewsCorrelationCoefficientclone()booleanequals(java.lang.Object obj)java.lang.StringgetName()Returns the name to present for this scoredoublegetScore()Computes the score for the results that have been enrolled viaClassificationScore.addResult(jsat.classifiers.CategoricalResults, int, double)inthashCode()-
Methods inherited from class jsat.classifiers.evaluation.SimpleBinaryClassMetric
addResult, addResults, lowerIsBetter, prepare
-
-
-
-
Constructor Detail
-
MatthewsCorrelationCoefficient
public MatthewsCorrelationCoefficient()
-
MatthewsCorrelationCoefficient
public MatthewsCorrelationCoefficient(MatthewsCorrelationCoefficient toClone)
-
-
Method Detail
-
getScore
public double getScore()
Description copied from interface:ClassificationScoreComputes the score for the results that have been enrolled viaClassificationScore.addResult(jsat.classifiers.CategoricalResults, int, double)- Specified by:
getScorein interfaceClassificationScore- Specified by:
getScorein classSimpleBinaryClassMetric- Returns:
- the score for the current results
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfaceClassificationScore- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceClassificationScore- Overrides:
hashCodein classjava.lang.Object
-
clone
public MatthewsCorrelationCoefficient clone()
- Specified by:
clonein interfaceClassificationScore- Specified by:
clonein classSimpleBinaryClassMetric
-
getName
public java.lang.String getName()
Description copied from interface:ClassificationScoreReturns the name to present for this score- Returns:
- the score name
-
-
DataMelt 3.0 © DataMelt by jWork.ORG