public class HLUtilityPredictMetric extends AbstractTestUserMetric
Modifier and Type | Class and Description |
---|---|
class |
HLUtilityPredictMetric.Accum |
Constructor and Description |
---|
HLUtilityPredictMetric() |
HLUtilityPredictMetric(double newAlpha) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getColumnLabels()
Get labels for the aggregate columns output by this evaluator.
|
java.util.List<java.lang.String> |
getUserColumnLabels()
Get labels for the per-user columns output by this evaluator.
|
HLUtilityPredictMetric.Accum |
makeAccumulator(Attributed algo,
TTDataSet ds)
Create a result accumulator for a single row for this evaluation.
|
finalRow, userRow
finishEvaluation, getCurrentEvaluation, startEvaluation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finishEvaluation, startEvaluation
public HLUtilityPredictMetric(double newAlpha)
public HLUtilityPredictMetric()
public HLUtilityPredictMetric.Accum makeAccumulator(Attributed algo, TTDataSet ds)
TestUserMetric
One accumulator is created and used per evaluation (data set × algorithmInfo).
Individual accumulators do not need to be thread-safe, but it must be possible to have multiple accumulators in separate threads in use concurrently.
algo
- The algorithmInfo to be evaluated.ds
- The data set being evaluated — used if the evaluator needs something
from it (such as the preference domain).public java.util.List<java.lang.String> getColumnLabels()
TestUserMetric
public java.util.List<java.lang.String> getUserColumnLabels()
TestUserMetric
TestUserMetricAccumulator.evaluate(org.grouplens.lenskit.eval.traintest.TestUser)