U - type of the usersI - type of the itemsF - type of the featurespublic class BinomialDiversity<U,I,F> extends BinomialMetric<U,I,F>
relModel| Constructor and Description |
|---|
BinomialDiversity(BinomialModel<U,I,F> binomialModel,
FeatureData<I,F,?> featureData,
int cutoff,
RelevanceModel<U,I> relModel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getResultFromCount(BinomialModel.UserBinomialModel ubm,
it.unimi.dsi.fastutil.objects.Object2IntMap<F> count,
int nrel,
int nret)
Returns the value of the binomial diversity metric for a given count of
features from a recommendation list.
|
evaluatepublic BinomialDiversity(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 recommendationCopyright © 2016. All rights reserved.