@DefaultImplementation(value=SimilarityMatrixModel.class) public interface ItemItemModel
These similarities are post-normalization, so code using them should typically use the same normalizations used by the builder to make use of the similarity scores.
Modifier and Type | Method and Description |
---|---|
LongSortedSet |
getItemUniverse()
Get the set of all items in the model.
|
SparseVector |
getNeighbors(long item)
Get the neighbors of an item scored by similarity.
|
LongSortedSet getItemUniverse()
@Nonnull SparseVector getNeighbors(long item)
org.grouplens.lenskit.knn.item
).item
- The item to get the neighborhood for.