public class CoveragePredictMetric extends AbstractMetric<CoveragePredictMetric.Context,CoveragePredictMetric.AggregateCoverage,CoveragePredictMetric.Coverage>
| Modifier and Type | Class and Description |
|---|---|
static class |
CoveragePredictMetric.AggregateCoverage |
class |
CoveragePredictMetric.Context |
static class |
CoveragePredictMetric.Coverage |
| Constructor and Description |
|---|
CoveragePredictMetric() |
| Modifier and Type | Method and Description |
|---|---|
CoveragePredictMetric.Context |
createContext(Attributed algo,
TTDataSet ds,
Recommender rec)
Create the context for an experimental condition (algorithm/data set pair).
|
CoveragePredictMetric.Coverage |
doMeasureUser(TestUser user,
CoveragePredictMetric.Context context)
Measure a user with typed results.
|
protected CoveragePredictMetric.AggregateCoverage |
getTypedResults(CoveragePredictMetric.Context context)
Get the typed results from an accumulator.
|
close, getColumnLabels, getPrefix, getResults, getSuffix, getUserColumnLabels, measureUserpublic CoveragePredictMetric.Context createContext(Attributed algo, TTDataSet ds, Recommender rec)
Metricalgo - 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 CoveragePredictMetric.Coverage doMeasureUser(TestUser user, CoveragePredictMetric.Context context)
AbstractMetricdoMeasureUser in class AbstractMetric<CoveragePredictMetric.Context,CoveragePredictMetric.AggregateCoverage,CoveragePredictMetric.Coverage>user - The user to measure.context - The context.null to emit NAs for the user.protected CoveragePredictMetric.AggregateCoverage getTypedResults(CoveragePredictMetric.Context context)
AbstractMetricgetTypedResults in class AbstractMetric<CoveragePredictMetric.Context,CoveragePredictMetric.AggregateCoverage,CoveragePredictMetric.Coverage>context - The context.null to emit NAs.