@Shareable @ThreadSafe @DefaultProvider(value=UserSnapshot.Builder.class) public class UserSnapshot extends java.lang.Object implements java.io.Serializable
User snapshot used by SnapshotNeighborFinder
.
Modifier and Type | Class and Description |
---|---|
static class |
UserSnapshot.Builder |
Modifier and Type | Method and Description |
---|---|
LongSet |
getItemUsers(long item) |
Long2DoubleMap |
getNormalizedUserVector(long user)
Get a user vector normalized for similarity computations.
|
Long2DoubleMap |
getUserVector(long user)
Get a user vector normalized for score computations.
|
public Long2DoubleMap getUserVector(long user)
Get a user vector normalized for score computations.
user
- The user ID.ScoreNormalizer
).public Long2DoubleMap getNormalizedUserVector(long user)
Get a user vector normalized for similarity computations.
SimilarityNormalizer
).public LongSet getItemUsers(long item)