jsat.regression.evaluation
Class RelativeAbsoluteError
- java.lang.Object
-
- jsat.regression.evaluation.TotalHistoryRegressionScore
-
- jsat.regression.evaluation.RelativeAbsoluteError
-
- All Implemented Interfaces:
- java.io.Serializable, RegressionScore
public class RelativeAbsoluteError extends TotalHistoryRegressionScore
Uses the Sum of Absolute Errors divided by the sum of the absolute value of the 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 RelativeAbsoluteError()Creates a new Relative Absolute Error evaluatorRelativeAbsoluteError(RelativeAbsoluteError toCopy)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description RelativeAbsoluteErrorclone()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
-
RelativeAbsoluteError
public RelativeAbsoluteError()
Creates a new Relative Absolute Error evaluator
-
RelativeAbsoluteError
public RelativeAbsoluteError(RelativeAbsoluteError 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 RelativeAbsoluteError 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