jsat.regression.evaluation
Class CoefficientOfDetermination
- java.lang.Object
-
- jsat.regression.evaluation.TotalHistoryRegressionScore
-
- jsat.regression.evaluation.CoefficientOfDetermination
-
- All Implemented Interfaces:
- java.io.Serializable, RegressionScore
public class CoefficientOfDetermination extends TotalHistoryRegressionScore
Uses the Coefficient of Determination, also known as R2, is an evaluation score in [0,1].- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description CoefficientOfDetermination()Creates a new Coefficient of Determination objectCoefficientOfDetermination(CoefficientOfDetermination toCopy)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description CoefficientOfDeterminationclone()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 viaRegressionScore.addResult(double, double, double)inthashCode()booleanlowerIsBetter()Returnstrueif a lower score is better, orfalseif a higher score is better-
Methods inherited from class jsat.regression.evaluation.TotalHistoryRegressionScore
addResult, addResults, prepare
-
-
-
-
Constructor Detail
-
CoefficientOfDetermination
public CoefficientOfDetermination()
Creates a new Coefficient of Determination object
-
CoefficientOfDetermination
public CoefficientOfDetermination(CoefficientOfDetermination toCopy)
Copy constructor- Parameters:
toCopy- the object to copy
-
-
Method Detail
-
getScore
public double getScore()
Description copied from interface:RegressionScoreComputes the score for the results that have been enrolled viaRegressionScore.addResult(double, double, double)- Returns:
- the score for the current results
-
lowerIsBetter
public boolean lowerIsBetter()
Description copied from interface:RegressionScoreReturnstrueif a lower score is better, orfalseif a higher score is better- Returns:
trueif a lower score is better
-
clone
public CoefficientOfDetermination clone()
- Specified by:
clonein interfaceRegressionScore- Specified by:
clonein classTotalHistoryRegressionScore
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceRegressionScore- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfaceRegressionScore- Overrides:
equalsin classjava.lang.Object
-
getName
public java.lang.String getName()
Description copied from interface:RegressionScoreReturns the name to present for this score- Returns:
- the score name
-
-
DataMelt 3.0 © DataMelt by jWork.ORG