U - type of the usersI - type of the itemsF - type of the featurespublic class BinomialCoverage<U,I,F> extends BinomialMetric<U,I,F>
relModel| Constructor and Description |
|---|
BinomialCoverage(BinomialModel<U,I,F> binomialModel,
FeatureData<I,F,?> featureData,
int cutoff,
RelevanceModel<U,I> relModel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static <U,I,F> double |
coverage(BinomialModel.UserBinomialModel ubm,
it.unimi.dsi.fastutil.objects.Object2IntMap<F> count,
int nret)
Returns the value of the binomial coverage metric for a given count of
features from a recommendation list.
|
protected double |
getResultFromCount(BinomialModel.UserBinomialModel ubm,
it.unimi.dsi.fastutil.objects.Object2IntMap<F> count,
int nrel,
int nret)
Returns the value of the binomial coverage metric for a given count of
features from a recommendation list.
|
evaluatepublic BinomialCoverage(BinomialModel<U,I,F> binomialModel, FeatureData<I,F,?> featureData, int cutoff, RelevanceModel<U,I> relModel)
binomialModel - binomial diversity modelfeatureData - feature datacutoff - maximum length of the recommendation list to be evaluatedrelModel - relevance modelprotected double getResultFromCount(BinomialModel.UserBinomialModel ubm, it.unimi.dsi.fastutil.objects.Object2IntMap<F> count, int nrel, int nret)
getResultFromCount in class BinomialMetric<U,I,F>ubm - user binomial modelcount - count map of each feature in the recommendationnrel - number of relevant documents in the recommendationnret - length of the recommendationprotected static <U,I,F> double coverage(BinomialModel.UserBinomialModel ubm, it.unimi.dsi.fastutil.objects.Object2IntMap<F> count, int nret)
U - type of the usersI - type of the itemsF - type of the featuresubm - user binomial modelcount - count map of each feature in a recommendationnret - length of the recommendationCopyright © 2016. All rights reserved.