public class TestUser extends Object
A test user’s data.
TestUserBuilder
Constructor and Description |
---|
TestUser(Entity user,
List<Rating> train,
List<Rating> test)
Construct a new test user object.
|
Modifier and Type | Method and Description |
---|---|
LongSet |
getSeenItems()
The set of items this user has seen in either training or test.
|
List<Rating> |
getTestHistory()
Return this user’s test history.
|
LongSet |
getTestItems() |
Long2DoubleMap |
getTestRatings()
Get the user’s test ratings.
|
List<Rating> |
getTrainHistory()
Return this user’s training history.
|
LongSet |
getTrainItems() |
long |
getUserId()
Get the ID of this user.
|
static TestUserBuilder |
newBuilder()
Make a builder for test users.
|
public static TestUserBuilder newBuilder()
Make a builder for test users.
public long getUserId()
Get the ID of this user.
public List<Rating> getTrainHistory()
Return this user’s training history.
public LongSet getTrainItems()
public List<Rating> getTestHistory()
Return this user’s test history.
public LongSet getTestItems()
public LongSet getSeenItems()
The set of items this user has seen in either training or test.
public Long2DoubleMap getTestRatings()
Get the user’s test ratings. Summarizes the user’s ratings from the history.