public class TestUser
extends java.lang.Object
A test user’s data.
TestUserBuilder
Constructor and Description |
---|
TestUser(Entity user,
java.util.List<Entity> train,
java.util.List<Entity> 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.
|
java.util.List<Entity> |
getTestHistory()
Return this user’s test history.
|
LongSet |
getTestItems() |
Long2DoubleMap |
getTestRatings()
Get the user’s test ratings.
|
java.util.List<Entity> |
getTrainHistory()
Return this user’s training history.
|
LongSet |
getTrainItems() |
Entity |
getUser() |
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 Entity getUser()
public long getUserId()
Get the ID of this user.
public java.util.List<Entity> getTrainHistory()
Return this user’s training history.
public LongSet getTrainItems()
public java.util.List<Entity> 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.