U - type of the usersI - type of the itemspublic class GiniIndex<U,I> extends AbstractSalesDiversityMetric<U,I>
cutoff, freeNorm, itemCount, itemWeight, numUsers| Constructor and Description |
|---|
GiniIndex(int cutoff,
int numItems)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate()
Evaluates the metric for the recommendations added so far.
|
protected double |
nov(I i)
Returns the sales novelty of an item.
|
add, combine, resetpublic GiniIndex(int cutoff,
int numItems)
cutoff - maximum length of the recommendation lists that is evaluatednumItems - total number of items in the catalogpublic double evaluate()
evaluate in interface SystemMetric<U,I>evaluate in class AbstractSalesDiversityMetric<U,I>protected double nov(I i)
nov in class AbstractSalesDiversityMetric<U,I>i - itemCopyright © 2016. All rights reserved.