U - type of the usersI - type of the itemsF - type of the featurespublic class BinomialModel<U,I,F> extends UserModel<U>
| Modifier and Type | Class and Description |
|---|---|
class |
BinomialModel.UserBinomialModel
Binomial diversity model of a user.
|
UserModel.Model<U>| Constructor and Description |
|---|
BinomialModel(boolean caching,
Stream<U> targetUsers,
PreferenceData<U,I> recommenderData,
FeatureData<I,F,?> featureData,
double alpha)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BinomialModel.UserBinomialModel |
get(U u) |
Set<F> |
getFeatures()
Returns the features considered by the model.
|
BinomialModel.UserBinomialModel |
getModel(U u) |
double |
p(F f)
Returns the non-personalized probability of a feature.
|
initializepublic BinomialModel(boolean caching,
Stream<U> targetUsers,
PreferenceData<U,I> recommenderData,
FeatureData<I,F,?> featureData,
double alpha)
caching - are the user diversity models cached?targetUsers - users whose diversity models are cached.recommenderData - preference datafeatureData - feature dataalpha - generality-personalization parameterpublic Set<F> getFeatures()
public double p(F f)
f - featurepublic BinomialModel.UserBinomialModel get(U u)
public BinomialModel.UserBinomialModel getModel(U u)
Copyright © 2016. All rights reserved.