public class FeatureIntentModel.FeatureUserIntentModel extends Object implements IntentModel.UserIntentModel<U,I,F>
FeatureIntentModel
.Modifier and Type | Field and Description |
---|---|
protected it.unimi.dsi.fastutil.objects.Object2DoubleOpenHashMap<F> |
pfu
Map feature to p(f|u)
|
Constructor and Description |
---|
FeatureUserIntentModel(U user)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<F> |
getIntents()
Returns the intents considered in the intent model.
|
Stream<F> |
getItemIntents(I i)
Returns the intents associated with an item.
|
double |
pf_u(F f)
Returns the probability of an intent in the model.
|
protected final it.unimi.dsi.fastutil.objects.Object2DoubleOpenHashMap<F> pfu
public FeatureUserIntentModel(U user)
user
- user whose model is created.public Set<F> getIntents()
getIntents
in interface IntentModel.UserIntentModel<U,I,F>
public Stream<F> getItemIntents(I i)
getItemIntents
in interface IntentModel.UserIntentModel<U,I,F>
i
- target itemCopyright © 2016. All rights reserved.