public interface TestUser
Modifier and Type | Method and Description |
---|---|
SparseVector |
getPredictions()
Get the user's predictions.
|
List<ScoredId> |
getRecommendations(int n,
ItemSelector candSel,
ItemSelector exclSel)
Get the user's recommendations.
|
Recommender |
getRecommender()
Get the recommender
|
UserHistory<Event> |
getTestHistory()
Return this user's test history.
|
SparseVector |
getTestRatings()
Get the user's test ratings.
|
UserHistory<Event> |
getTrainHistory()
Return this user's training history.
|
long |
getUserId()
Get the ID of this user.
|
long getUserId()
UserHistory<Event> getTrainHistory()
UserHistory<Event> getTestHistory()
SparseVector getTestRatings()
@Nullable SparseVector getPredictions()
null
if the algorithmInfo
does not support rating prediction.@Nullable List<ScoredId> getRecommendations(int n, ItemSelector candSel, ItemSelector exclSel)
n
- The number of recommendations to generate.candSel
- The candidate selector.exclSel
- The exclude selector.null
if the recommender does not
support recommendation.ItemRecommender.recommend(long, int, java.util.Set,
java.util.Set)
@Nullable Recommender getRecommender()