public abstract class AbstractItemBasedItemScorer extends java.lang.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(java.util.Collection<java.lang.Long> basket,
long item)
Score a single item based on a collection of items (e.g.
|
java.util.Map<java.lang.Long,java.lang.Double> |
scoreRelatedItems(java.util.Collection<java.lang.Long> basket,
java.util.Collection<java.lang.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 java.util.Map<java.lang.Long,java.lang.Double> scoreRelatedItems(@Nonnull
java.util.Collection<java.lang.Long> basket,
@Nonnull
java.util.Collection<java.lang.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 java.util.Collection<java.lang.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.