public interface BiasModel
Interface for bias models that can be based on the user, item, or both.
Modifier and Type | Method and Description |
---|---|
double |
getIntercept()
Get the global bias (intercept).
|
double |
getItemBias(long item)
Get the item bias.
|
Long2DoubleMap |
getItemBiases()
Get the map of all known item biases.
|
Long2DoubleMap |
getItemBiases(LongSet items)
Get a set of item biases.
|
double |
getUserBias(long user)
Get the user bias.
|
Long2DoubleMap |
getUserBiases()
Get the map of all known user biases.
|
Long2DoubleMap |
getUserBiases(LongSet users)
Get a set of user biases.
|
double getIntercept()
Get the global bias (intercept).
double getUserBias(long user)
Get the user bias.
user
- The user ID.Long2DoubleMap getUserBiases(LongSet users)
Get a set of user biases.
users
- The users whose biases are to be returned.Long2DoubleMap.defaultReturnValue()
will be 0.Long2DoubleMap getUserBiases()
Get the map of all known user biases.
double getItemBias(long item)
Get the item bias.
item
- The item ID.Long2DoubleMap getItemBiases(LongSet items)
Get a set of item biases.
items
- The items whose biases are to be returned.Long2DoubleMap.defaultReturnValue()
will be 0.Long2DoubleMap getItemBiases()
Get the map of all known item biases.