public class RMSEPredictMetric extends AbstractMetric<RMSEPredictMetric.Context,RMSEPredictMetric.AggregateResult,RMSEPredictMetric.UserResult>
Modifier and Type | Class and Description |
---|---|
static class |
RMSEPredictMetric.AggregateResult |
class |
RMSEPredictMetric.Context |
static class |
RMSEPredictMetric.UserResult |
Constructor and Description |
---|
RMSEPredictMetric() |
Modifier and Type | Method and Description |
---|---|
RMSEPredictMetric.Context |
createContext(Attributed algo,
TTDataSet ds,
Recommender rec)
Create the context for an experimental condition (algorithm/data set pair).
|
RMSEPredictMetric.UserResult |
doMeasureUser(TestUser user,
RMSEPredictMetric.Context context)
Measure a user with typed results.
|
protected RMSEPredictMetric.AggregateResult |
getTypedResults(RMSEPredictMetric.Context context)
Get the typed results from an accumulator.
|
close, getColumnLabels, getPrefix, getResults, getSuffix, getUserColumnLabels, measureUser
public RMSEPredictMetric.Context createContext(Attributed algo, TTDataSet ds, Recommender rec)
Metric
algo
- The algorithm.ds
- The data set.rec
- The LensKit recommender, if applicable. This can be null for an external
algorithm that does not provide a LensKit recommender.Metric.measureUser(TestUser, Object)
. If
the metric does not accumulate any results, this method can return null
.public RMSEPredictMetric.UserResult doMeasureUser(TestUser user, RMSEPredictMetric.Context context)
AbstractMetric
doMeasureUser
in class AbstractMetric<RMSEPredictMetric.Context,RMSEPredictMetric.AggregateResult,RMSEPredictMetric.UserResult>
user
- The user to measure.context
- The context.null
to emit NAs for the user.protected RMSEPredictMetric.AggregateResult getTypedResults(RMSEPredictMetric.Context context)
AbstractMetric
getTypedResults
in class AbstractMetric<RMSEPredictMetric.Context,RMSEPredictMetric.AggregateResult,RMSEPredictMetric.UserResult>
context
- The context.null
to emit NAs.