TargetType
- The type of the target (ground-truth).EstimateType
- The type of the estimate (prediction).public abstract class AbstractTargetEstimatePair<TargetType,EstimateType> extends AbstractCloneableSerializable implements TargetEstimatePair<TargetType,EstimateType>
TargetEstimatePair
. This is useful
when keeping track of both a target (ground-truth) and an estimate
(prediction), for example when estimating the performance of a function.Constructor and Description |
---|
AbstractTargetEstimatePair()
Creates a new
AbstractTargetEstimatePair . |
Modifier and Type | Method and Description |
---|---|
TargetType |
getFirst()
Gets the target, which is the first element in the pair.
|
EstimateType |
getSecond()
Gets the estimate, which is the second element in the pair.
|
java.lang.String |
toString() |
clone
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEstimate, getTarget
public AbstractTargetEstimatePair()
AbstractTargetEstimatePair
.public TargetType getFirst()
getFirst
in interface Pair<TargetType,EstimateType>
public EstimateType getSecond()
getSecond
in interface Pair<TargetType,EstimateType>
public java.lang.String toString()
toString
in class java.lang.Object