public static class MockTestUser.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MockTestUser.Builder |
addTestEvent(Event evt) |
MockTestUser.Builder |
addTestRating(long item,
double value) |
MockTestUser.Builder |
addTrainEvent(Event evt) |
MockTestUser.Builder |
addTrainRating(long item,
double value) |
MockTestUser |
build() |
SparseVector |
getPredictions() |
List<ScoredId> |
getRecommendations() |
Recommender |
getRecommender() |
MockTestUser.Builder |
setPredictions(SparseVector predictions) |
MockTestUser.Builder |
setRecommendations(List<ScoredId> recommendations) |
MockTestUser.Builder |
setRecommender(Recommender rec) |
MockTestUser.Builder |
setUserId(long uid) |
public MockTestUser.Builder setUserId(long uid)
public MockTestUser.Builder addTrainEvent(Event evt)
public MockTestUser.Builder addTrainRating(long item, double value)
public MockTestUser.Builder addTestEvent(Event evt)
public MockTestUser.Builder addTestRating(long item, double value)
public SparseVector getPredictions()
public MockTestUser.Builder setPredictions(SparseVector predictions)
public MockTestUser.Builder setRecommendations(List<ScoredId> recommendations)
public Recommender getRecommender()
public MockTestUser.Builder setRecommender(Recommender rec)
public MockTestUser build()