public abstract class TotalHistoryRegressionScore extends Object implements RegressionScore
Modifier and Type | Field and Description |
---|---|
protected DoubleList |
predictions
List of the predict values for each target
|
protected DoubleList |
truths
List of the true target values
|
protected DoubleList |
weights
The weight of importance for each point
|
Constructor and Description |
---|
TotalHistoryRegressionScore() |
TotalHistoryRegressionScore(TotalHistoryRegressionScore toCopy)
Copy constructor
|
Modifier 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. |
abstract TotalHistoryRegressionScore |
clone() |
void |
prepare() |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, getName, getScore, hashCode, lowerIsBetter
protected DoubleList truths
protected DoubleList predictions
protected DoubleList weights
public TotalHistoryRegressionScore()
public TotalHistoryRegressionScore(TotalHistoryRegressionScore toCopy)
toCopy
- the object to copypublic void prepare()
prepare
in interface RegressionScore
public void addResult(double prediction, double trueValue, double weight)
RegressionScore
addResult
in interface RegressionScore
prediction
- the prediction for the data pointtrueValue
- the true value for the data pointweight
- the weigh to assign to the data pointpublic void addResults(RegressionScore other)
RegressionScore
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.addResults
in interface RegressionScore
other
- the object to add the results frompublic abstract TotalHistoryRegressionScore clone()
clone
in interface RegressionScore
clone
in class Object
Copyright © 2017. All rights reserved.