public abstract class AbstractItemBasedItemScorer extends Object implements ItemBasedItemScorer
Base class to make it easier to implement ItemBasedItemScorer. All methods delegate to ItemBasedItemScorer.scoreRelatedItemsWithDetails(Collection, Collection).
| Constructor and Description |
|---|
AbstractItemBasedItemScorer() |
| Modifier and Type | Method and Description |
|---|---|
Result |
scoreRelatedItem(Collection<Long> basket,
long item)
Score a single item based on a collection of items (e.g.
|
Map<Long,Double> |
scoreRelatedItems(Collection<Long> basket,
Collection<Long> items)
Score a collection of items based on a collection of items (e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitscoreRelatedItemsWithDetails@Nonnull public Map<Long,Double> scoreRelatedItems(@Nonnull Collection<Long> basket, @Nonnull Collection<Long> items)
Score a collection of items based on a collection of items (e.g. a shopping basket).
This implementation delegates to ItemBasedItemScorer.scoreRelatedItemsWithDetails(Collection, Collection).
scoreRelatedItems in interface ItemBasedItemScorerbasket - The objective items ID used as the queryitems - The list of items to score.public Result scoreRelatedItem(@Nonnull Collection<Long> basket, long item)
Score a single item based on a collection of items (e.g. a shopping basket).
This implementation delegates to ItemBasedItemScorer.scoreRelatedItemsWithDetails(Collection, Collection).
scoreRelatedItem in interface ItemBasedItemScorerbasket - The objective items ID used as the queryitem - The item ID to score.null if no score can be predicted.