| Modifier and Type | Class and Description |
|---|---|
static class |
FunctionMultiModelMetric.Factory |
| Constructor and Description |
|---|
FunctionMultiModelMetric(File file,
List<String> columns,
Function<Recommender,List<List<Object>>> func,
org.grouplens.lenskit.eval.traintest.ExperimentOutputLayout layout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Void |
createContext(Attributed algorithm,
TTDataSet dataSet,
Recommender recommender)
Create the context for an experimental condition (algorithm/data set pair).
|
List<String> |
getColumnLabels()
Get labels for the aggregate columns output by this evaluator.
|
List<Object> |
getResults(Void context)
Get the aggregate results from an accumulator.
|
List<String> |
getUserColumnLabels()
Get labels for the per-user columns output by this evaluator.
|
List<Object> |
measureUser(TestUser user,
Void context)
Measure a user in the evaluation.
|
public List<String> getColumnLabels()
MetricgetColumnLabels in interface Metric<Void>public List<String> getUserColumnLabels()
MetricgetUserColumnLabels in interface Metric<Void>Metric.measureUser(TestUser, Object)@Nullable public Void createContext(Attributed algorithm, TTDataSet dataSet, Recommender recommender)
MetriccreateContext in interface Metric<Void>algorithm - The algorithm.dataSet - The data set.recommender - 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.@Nonnull public List<Object> measureUser(TestUser user, Void context)
MetricmeasureUser in interface Metric<Void>user - The user to evaluate.context - The context for the active experimental condition.@Nonnull public List<Object> getResults(Void context)
MetricgetResults in interface Metric<Void>context - The context for an experimental condition.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException