U
- type of the usersI
- type of the itemsF
- type of the featurespublic class BinomialNonRedundancy<U,I,F> extends BinomialMetric<U,I,F>
relModel
Constructor and Description |
---|
BinomialNonRedundancy(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 prob,
it.unimi.dsi.fastutil.objects.Object2IntMap<F> count,
int nrel,
int nret)
Result of the metric based on the number of times each features appears in a recommendation list.
|
protected static <U,I,F> double |
nonRedundancy(BinomialModel.UserBinomialModel ubm,
it.unimi.dsi.fastutil.objects.Object2IntMap<F> count,
int nrel)
Returns the value of the binomial redundancy metric for a given count of
features from a recommendation list.
|
evaluate
public BinomialNonRedundancy(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 prob, it.unimi.dsi.fastutil.objects.Object2IntMap<F> count, int nrel, int nret)
BinomialMetric
getResultFromCount
in class BinomialMetric<U,I,F>
prob
- user binomial modelcount
- count map of each feature in a recommendationnrel
- number of relevant items in the recommendationnret
- length of the recommendationprotected static <U,I,F> double nonRedundancy(BinomialModel.UserBinomialModel ubm, it.unimi.dsi.fastutil.objects.Object2IntMap<F> count, int nrel)
U
- type of the usersI
- type of the itemsF
- type of the featuresubm
- user binomial modelcount
- count map of each feature in a recommendationnrel
- number of relevant items in the recommendationCopyright © 2016. All rights reserved.