public interface RegressionScore extends Serializable
equals(java.lang.Object)
and hashCode()
methods. If a score has parameters, different
objects with different parameters must not be equal. However, different
objects with the same parameters must be equal even if their internal
states are differentModifier and Type | Method and Description |
---|---|
void |
addResult(double prediction,
double trueValue,
double weight)
Adds the given result to the score
|
void |
addResults(RegressionScore other)
The score contained in this object is augmented with the results
already accumulated in the
other object. |
RegressionScore |
clone() |
boolean |
equals(Object obj) |
String |
getName()
Returns the name to present for this score
|
double |
getScore()
Computes the score for the results that have been enrolled via
addResult(double, double, double) |
int |
hashCode() |
boolean |
lowerIsBetter()
Returns
true if a lower score is better, or false if a
higher score is better |
void |
prepare() |
void prepare()
void addResult(double prediction, double trueValue, double weight)
prediction
- the prediction for the data pointtrueValue
- the true value for the data pointweight
- the weigh to assign to the data pointvoid addResults(RegressionScore other)
other
object. This does not result in
an averaging, but alters the current object to have the same score it
would have had if all the results were originally inserted into this
object. other
if of the same
class as this
object.other
- the object to add the results fromdouble getScore()
addResult(double, double, double)
boolean lowerIsBetter()
true
if a lower score is better, or false
if a
higher score is bettertrue
if a lower score is betterRegressionScore clone()
String getName()
Copyright © 2017. All rights reserved.