public class BinomialModel.UserBinomialModel extends Object implements UserModel.Model<U>
| Modifier and Type | Method and Description |
|---|---|
Set<F> |
getFeatures()
Returns the features considered by the user binomial model.
|
double |
longing(F f,
int N)
Returns the longing, i.e., how much the feature would be missed if
not included in a recommendation list of a given size.
|
double |
p(F f)
Returns the personalized probability of a feature.
|
double |
patience(int k,
F f,
int N)
Return the patience, i.e., the penalization of having a number of
items with the same feature in a recommendation list of a given size.
|
public Set<F> getFeatures()
public double p(F f)
f - featurepublic double longing(F f, int N)
f - featureN - recommendation list sizepublic double patience(int k,
F f,
int N)
k - number of times the feature appears in items in the
recommendation.f - featureN - recommendation list sizeCopyright © 2016. All rights reserved.