U - type of the usersI - type of the itemspublic abstract class AbstractSalesDiversityMetric<U,I> extends AbstractSystemMetric<U,I>
| Modifier and Type | Field and Description |
|---|---|
protected int |
cutoff
maximum length of the recommendation lists that is evaluated
|
protected double |
freeNorm
Norm for free discovery item novelty models.
|
protected it.unimi.dsi.fastutil.objects.Object2DoubleOpenHashMap<I> |
itemCount
Map of item-count.
|
protected it.unimi.dsi.fastutil.objects.Object2DoubleOpenHashMap<I> |
itemWeight
Map of item-weight.
|
protected int |
numUsers
Number of users.
|
| Constructor and Description |
|---|
AbstractSalesDiversityMetric(int cutoff,
RankingDiscountModel disc,
RelevanceModel<U,I> rel)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Recommendation<U,I> recommendation) |
void |
combine(SystemMetric<U,I> other) |
double |
evaluate() |
protected abstract double |
nov(I i)
Returns the sales novelty of an item.
|
void |
reset() |
protected final int cutoff
protected final it.unimi.dsi.fastutil.objects.Object2DoubleOpenHashMap<I> itemCount
protected final it.unimi.dsi.fastutil.objects.Object2DoubleOpenHashMap<I> itemWeight
protected double freeNorm
protected int numUsers
public AbstractSalesDiversityMetric(int cutoff,
RankingDiscountModel disc,
RelevanceModel<U,I> rel)
cutoff - maximum length of the recommendation lists that is evaluateddisc - ranking discount modelrel - relevance modelpublic void add(Recommendation<U,I> recommendation)
public void combine(SystemMetric<U,I> other)
protected abstract double nov(I i)
i - itempublic double evaluate()
public void reset()
Copyright © 2016. All rights reserved.