public abstract class AspectModel.UserAspectModel extends Object implements IntentModel.UserIntentModel<U,I,F>, AspectModel.ItemAspectModel<U,I,F>
AspectModel
.Constructor and Description |
---|
UserAspectModel(U user)
Constructor taking user intent model.
|
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.
|
abstract void |
initializeWithItems(List<Tuple2od<I>> items)
Initialises the model with items.
|
double |
pf_u(F f)
Returns the probability of an intent in the model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
pi_f
public UserAspectModel(U user)
user
- userpublic abstract void initializeWithItems(List<Tuple2od<I>> items)
items
- list of items with scorespublic Set<F> getIntents()
IntentModel.UserIntentModel
getIntents
in interface IntentModel.UserIntentModel<U,I,F>
public Stream<F> getItemIntents(I i)
IntentModel.UserIntentModel
getItemIntents
in interface IntentModel.UserIntentModel<U,I,F>
i
- itempublic double pf_u(F f)
IntentModel.UserIntentModel
pf_u
in interface IntentModel.UserIntentModel<U,I,F>
f
- intentCopyright © 2016. All rights reserved.