| Package | Description |
|---|---|
| org.apache.mahout.cf.taste.impl.recommender | |
| org.apache.mahout.cf.taste.impl.similarity |
| Modifier and Type | Method and Description |
|---|---|
static List<GenericItemSimilarity.ItemItemSimilarity> |
TopItems.getTopItemItemSimilarities(int howMany,
Iterator<GenericItemSimilarity.ItemItemSimilarity> allSimilarities)
Thanks to tsmorton for suggesting this functionality and writing part of the code.
|
| Modifier and Type | Method and Description |
|---|---|
static List<GenericItemSimilarity.ItemItemSimilarity> |
TopItems.getTopItemItemSimilarities(int howMany,
Iterator<GenericItemSimilarity.ItemItemSimilarity> allSimilarities)
Thanks to tsmorton for suggesting this functionality and writing part of the code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
GenericItemSimilarity.ItemItemSimilarity.compareTo(GenericItemSimilarity.ItemItemSimilarity other)
Defines an ordering from highest similarity to lowest.
|
| Constructor and Description |
|---|
GenericItemSimilarity(Iterable<GenericItemSimilarity.ItemItemSimilarity> similarities)
Creates a
GenericItemSimilarity from a precomputed list of GenericItemSimilarity.ItemItemSimilaritys. |
GenericItemSimilarity(Iterable<GenericItemSimilarity.ItemItemSimilarity> similarities,
int maxToKeep)
Like
GenericItemSimilarity.GenericItemSimilarity(Iterable), but will only keep the specified number of similarities
from the given Iterable of similarities. |
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.