jsat.regression.evaluation
Class RelativeSquaredError
- java.lang.Object
-
- jsat.regression.evaluation.TotalHistoryRegressionScore
-
- jsat.regression.evaluation.RelativeSquaredError
-
- All Implemented Interfaces:
- java.io.Serializable, RegressionScore
public class RelativeSquaredError extends TotalHistoryRegressionScore
Uses the Sum of Squared Errors divided by the sum of the squared true values subtracted from their mean. This produces an error metric that has no units.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description RelativeSquaredError()Creates a new Relative Squared Error objectRelativeSquaredError(RelativeSquaredError toCopy)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description RelativeSquaredErrorclone()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
-
RelativeSquaredError
public RelativeSquaredError()
Creates a new Relative Squared Error object
-
RelativeSquaredError
public RelativeSquaredError(RelativeSquaredError 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 RelativeSquaredError 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