public interface MyrrixRecommender
extends org.apache.mahout.cf.taste.recommender.ItemBasedRecommender
Defines additional methods supported beyond what is in ItemBasedRecommender,
including a method to recommend to "anonymous" users recommendToAnonymous(long[], int)
and a means to bulk-load data ingest(Reader).
Note that the API methods setPreference(long, long)
and removePreference(long, long), retained from Apache Mahout, have a somewhat different meaning
than in Mahout. They add to an association strength, rather than replace it. See the javadoc.
Several methods exist here because they are defined in Mahout, but have no useful meaning in this
implementation. These are marked as @Deprecated and should not be used.
| Modifier and Type | Method and Description |
|---|---|
void |
await()
Blocks indefinitely until
isReady() returns true. |
boolean |
await(long time,
TimeUnit unit)
Blocks until
isReady() returns true, or the given timeout is reached. |
float |
estimateForAnonymous(long toItemID,
long[] itemIDs)
A version of
estimatePreference(long, long) that, like
recommendToAnonymous(long[], float[], int), operates on "anonymous" users --
defined not by a previously known set of data, but data given in the request. |
float |
estimateForAnonymous(long toItemID,
long[] itemIDs,
float[] values)
A version of
estimatePreference(long, long) that, like
recommendToAnonymous(long[], float[], int), operates on "anonymous" users --
defined not by a previously known set of data, but data given in the request. |
float |
estimatePreference(long userID,
long itemID) |
float[] |
estimatePreferences(long userID,
long... itemIDs)
A bulk version of
estimatePreference(long, long), suitable for computing many estimates
at once. |
FastIDSet |
getAllItemIDs() |
FastIDSet |
getAllUserIDs() |
org.apache.mahout.cf.taste.model.DataModel |
getDataModel()
Deprecated.
do not call; only present to satisfy Mahout API
|
FastIDSet |
getItemCluster(int n) |
int |
getNumItemClusters() |
int |
getNumUserClusters() |
FastIDSet |
getUserCluster(int n) |
void |
ingest(File file)
"Uploads" a series of new associations to the recommender; this is like a bulk version of
setPreference(long, long, float). |
void |
ingest(Reader reader)
Like
ingest(File), but reads from a Reader. |
boolean |
isReady() |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
mostPopularItems(int howMany) |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
mostPopularItems(int howMany,
org.apache.mahout.cf.taste.recommender.IDRescorer rescorer) |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
mostSimilarItems(long[] itemIDs,
int howMany) |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
mostSimilarItems(long[] itemIDs,
int howMany,
boolean excludeItemIfNotSimilarToAll)
Deprecated.
do not call; only present to satisfy Mahout API
|
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
mostSimilarItems(long[] itemIDs,
int howMany,
org.apache.mahout.cf.taste.recommender.Rescorer<org.apache.mahout.common.LongPair> rescorer) |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
mostSimilarItems(long[] itemIDs,
int howMany,
org.apache.mahout.cf.taste.recommender.Rescorer<org.apache.mahout.common.LongPair> rescorer,
boolean excludeItemIfNotSimilarToAll)
Deprecated.
do not call; only present to satisfy Mahout API
|
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
mostSimilarItems(long itemID,
int howMany) |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
mostSimilarItems(long itemID,
int howMany,
org.apache.mahout.cf.taste.recommender.Rescorer<org.apache.mahout.common.LongPair> rescorer) |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
recommend(long userID,
int howMany) |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
recommend(long userID,
int howMany,
boolean considerKnownItems,
org.apache.mahout.cf.taste.recommender.IDRescorer rescorer) |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
recommend(long userID,
int howMany,
org.apache.mahout.cf.taste.recommender.IDRescorer rescorer) |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
recommendedBecause(long userID,
long itemID,
int howMany)
Lists the items that were most influential in recommending a given item to a given user.
|
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
recommendToAnonymous(long[] itemIDs,
float[] values,
int howMany)
Like
recommendToAnonymous(long[], int) but allows specifying values associated with items. |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
recommendToAnonymous(long[] itemIDs,
float[] values,
int howMany,
org.apache.mahout.cf.taste.recommender.IDRescorer rescorer)
Like
recommendToAnonymous(long[], int, IDRescorer) but lets caller specify strength scores associated
to each of the items. |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
recommendToAnonymous(long[] itemIDs,
int howMany)
Computes recommendations for a user that is not known to the model yet; instead, the user's
associated items are supplied to the method and it proceeds as if a user with these associated
items were in the model.
|
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
recommendToAnonymous(long[] itemIDs,
int howMany,
org.apache.mahout.cf.taste.recommender.IDRescorer rescorer)
Like
recommendToAnonymous(long[], int) but rescorer results like
recommend(long, int, boolean, IDRescorer). |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> |
recommendToMany(long[] userIDs,
int howMany,
boolean considerKnownItems,
org.apache.mahout.cf.taste.recommender.IDRescorer rescorer)
Recommends to a group of users all at once.
|
void |
refresh()
Like
refresh(Collection) from Mahout, but the need for the argument does not exist in
Myrrix. |
void |
refresh(Collection<org.apache.mahout.cf.taste.common.Refreshable> refreshables)
Deprecated.
call
refresh() |
void |
removePreference(long userID,
long itemID)
This method will remove an item from the user's set of known items,
making it eligible for recommendation again.
|
void |
setItemTag(String tag,
long itemID) |
void |
setItemTag(String tag,
long itemID,
float value)
Like
setUserTag(long, String, float), but for items. |
void |
setPreference(long userID,
long itemID)
Defaults to value 1.0.
|
void |
setPreference(long userID,
long itemID,
float value)
Adds to a user-item preference, or association.
|
void |
setUserTag(long userID,
String tag) |
void |
setUserTag(long userID,
String tag,
float value)
"Tags" a user; records an association between a user and an arbitrary concept.
|
float[] |
similarityToItem(long toItemID,
long... itemIDs) |
List<org.apache.mahout.cf.taste.recommender.RecommendedItem> recommend(long userID, int howMany) throws org.apache.mahout.cf.taste.common.TasteException
recommend in interface org.apache.mahout.cf.taste.recommender.RecommenderuserID - user for which recommendations are to be computedhowMany - desired number of recommendationsList of recommended RecommendedItems, ordered from most strongly recommend to leastorg.apache.mahout.cf.taste.common.NoSuchUserException - if the user is not knownorg.apache.mahout.cf.taste.common.TasteExceptionList<org.apache.mahout.cf.taste.recommender.RecommendedItem> recommend(long userID, int howMany, org.apache.mahout.cf.taste.recommender.IDRescorer rescorer) throws org.apache.mahout.cf.taste.common.TasteException
recommend in interface org.apache.mahout.cf.taste.recommender.RecommenderuserID - user for which recommendations are to be computedhowMany - desired number of recommendationsrescorer - rescoring function to apply before final list of recommendations is determinedList of recommended RecommendedItems, ordered from most strongly recommend to leastorg.apache.mahout.cf.taste.common.NoSuchUserException - if the user is not knownorg.apache.mahout.cf.taste.common.TasteExceptionfloat estimatePreference(long userID,
long itemID)
throws org.apache.mahout.cf.taste.common.TasteException
estimatePreference in interface org.apache.mahout.cf.taste.recommender.RecommenderuserID - user ID whose preference is to be estimateditemID - item ID to estimate preference fororg.apache.mahout.cf.taste.common.TasteExceptionvoid setPreference(long userID,
long itemID,
float value)
throws org.apache.mahout.cf.taste.common.TasteException
Adds to a user-item preference, or association. This is called in response to some action that indicates the user has a stronger association to an item, like a click or purchase. It is intended to be called many times for a user and item, as more actions are observed that associate the two. That is, this calls adds to rather than sets the association.
To "undo" associations, call this method with negative values, or
see removePreference(long, long).
Value is not a rating, but a strength indicator. It may be negative. Its magnitude should correspond to the degree to which an observed event suggests an association between a user and item. A value twice as big should correspond to an event that suggests twice as strong an association.
For example, a click on a video might result in a call with value 1.0. Watching half of the video might result in another call adding value 3.0. Finishing the video, another 3.0. Liking or sharing the video, an additional 10.0. Clicking away from a video within 10 seconds might result in a -3.0.
setPreference in interface org.apache.mahout.cf.taste.recommender.RecommenderuserID - user involved in the new preferenceitemID - item involvedvalue - strength valueorg.apache.mahout.cf.taste.common.TasteException - if the preference cannot be updated, due to a server errorNotReadyException - if the implementation has no usable model yetvoid removePreference(long userID,
long itemID)
throws org.apache.mahout.cf.taste.common.TasteException
This method will remove an item from the user's set of known items,
making it eligible for recommendation again. If the user has no more items, this method will remove
the user too, such that new calls to recommend(long, int) for example
will fail with NoSuchUserException.
It does not affect any user-item association strengths.
Contrast with calling setPreference(long, long, float) with a negative value,
which merely records a negative association between the user and item.
removePreference in interface org.apache.mahout.cf.taste.recommender.Recommenderorg.apache.mahout.cf.taste.common.TasteExceptionvoid setUserTag(long userID,
String tag)
throws org.apache.mahout.cf.taste.common.TasteException
org.apache.mahout.cf.taste.common.TasteExceptionsetUserTag(long, String, float)void setUserTag(long userID,
String tag,
float value)
throws org.apache.mahout.cf.taste.common.TasteException
setPreference(long, long, float), but
tags are of course not recommendable like items. It provides a way to add non-item information into the
model, to be learned from, in a generic way. Tags may be any non-empty string.userID - the user to tagtag - the user tagvalue - the strength of the tagorg.apache.mahout.cf.taste.common.TasteExceptionsetItemTag(String, long, float)void setItemTag(String tag, long itemID) throws org.apache.mahout.cf.taste.common.TasteException
org.apache.mahout.cf.taste.common.TasteExceptionsetItemTag(String, long, float)void setItemTag(String tag, long itemID, float value) throws org.apache.mahout.cf.taste.common.TasteException
setUserTag(long, String, float), but for items.org.apache.mahout.cf.taste.common.TasteExceptionsetUserTag(long, String, float)@Deprecated org.apache.mahout.cf.taste.model.DataModel getDataModel()
getDataModel in interface org.apache.mahout.cf.taste.recommender.RecommenderUnsupportedOperationException - in generalList<org.apache.mahout.cf.taste.recommender.RecommendedItem> mostSimilarItems(long itemID, int howMany) throws org.apache.mahout.cf.taste.common.TasteException
mostSimilarItems in interface org.apache.mahout.cf.taste.recommender.ItemBasedRecommenderitemID - ID of item for which to find most similar other itemshowMany - desired number of most similar items to findorg.apache.mahout.cf.taste.common.NoSuchItemException - if the item is not knownorg.apache.mahout.cf.taste.common.TasteExceptionList<org.apache.mahout.cf.taste.recommender.RecommendedItem> mostSimilarItems(long itemID, int howMany, org.apache.mahout.cf.taste.recommender.Rescorer<org.apache.mahout.common.LongPair> rescorer) throws org.apache.mahout.cf.taste.common.TasteException
mostSimilarItems in interface org.apache.mahout.cf.taste.recommender.ItemBasedRecommenderitemID - ID of item for which to find most similar other itemshowMany - desired number of most similar items to findrescorer - Rescorer which can adjust item-item similarity estimates used to determine
most similar items. The LongPair that will be passed to the Rescorer contains
the candidate item that might be returned in the result as its first element, and the
itemID argument here as its second element.org.apache.mahout.cf.taste.common.NoSuchItemException - if the item is not knownorg.apache.mahout.cf.taste.common.TasteExceptionList<org.apache.mahout.cf.taste.recommender.RecommendedItem> mostSimilarItems(long[] itemIDs, int howMany) throws org.apache.mahout.cf.taste.common.TasteException
mostSimilarItems in interface org.apache.mahout.cf.taste.recommender.ItemBasedRecommenderitemIDs - IDs of item for which to find most similar other itemshowMany - desired number of most similar items to find estimates used to determine most similar itemsorg.apache.mahout.cf.taste.common.NoSuchItemException - if none of itemIDs
exist in the model. Otherwise, unknown items are ignored.org.apache.mahout.cf.taste.common.TasteExceptionList<org.apache.mahout.cf.taste.recommender.RecommendedItem> mostSimilarItems(long[] itemIDs, int howMany, org.apache.mahout.cf.taste.recommender.Rescorer<org.apache.mahout.common.LongPair> rescorer) throws org.apache.mahout.cf.taste.common.TasteException
mostSimilarItems in interface org.apache.mahout.cf.taste.recommender.ItemBasedRecommenderitemIDs - IDs of item for which to find most similar other itemshowMany - desired number of most similar items to findrescorer - Rescorer which can adjust item-item similarity estimates used to determine
most similar items. The LongPair that will be passed to the Rescorer contains
the candidate item that might be returned in the result as its first element, and one of the
itemID arguments here as its second element.org.apache.mahout.cf.taste.common.NoSuchItemException - if none of itemIDs
exist in the model. Otherwise, unknown items are ignored.org.apache.mahout.cf.taste.common.TasteException@Deprecated List<org.apache.mahout.cf.taste.recommender.RecommendedItem> mostSimilarItems(long[] itemIDs, int howMany, boolean excludeItemIfNotSimilarToAll) throws org.apache.mahout.cf.taste.common.TasteException
mostSimilarItems in interface org.apache.mahout.cf.taste.recommender.ItemBasedRecommenderUnsupportedOperationException - in generalorg.apache.mahout.cf.taste.common.TasteException@Deprecated List<org.apache.mahout.cf.taste.recommender.RecommendedItem> mostSimilarItems(long[] itemIDs, int howMany, org.apache.mahout.cf.taste.recommender.Rescorer<org.apache.mahout.common.LongPair> rescorer, boolean excludeItemIfNotSimilarToAll) throws org.apache.mahout.cf.taste.common.TasteException
mostSimilarItems in interface org.apache.mahout.cf.taste.recommender.ItemBasedRecommenderUnsupportedOperationException - in generalorg.apache.mahout.cf.taste.common.TasteException@Deprecated void refresh(Collection<org.apache.mahout.cf.taste.common.Refreshable> refreshables)
refresh()refresh in interface org.apache.mahout.cf.taste.common.Refreshablevoid refresh()
refresh(Collection) from Mahout, but the need for the argument does not exist in
Myrrix. Triggers a rebuild of the object's internal state, particularly, the matrix model.List<org.apache.mahout.cf.taste.recommender.RecommendedItem> recommendedBecause(long userID, long itemID, int howMany) throws org.apache.mahout.cf.taste.common.TasteException
Lists the items that were most influential in recommending a given item to a given user. Exactly how this is determined is left to the implementation, but, generally this will return items that the user prefers and that are similar to the given item.
This returns a List of RecommendedItem which is a little misleading since it's returning
recommending items, but, I thought it more natural to just reuse this class since it
encapsulates an item and value. The value here does not necessarily have a consistent interpretation or
expected range; it will be higher the more influential the item was in the recommendation.
recommendedBecause in interface org.apache.mahout.cf.taste.recommender.ItemBasedRecommenderuserID - ID of user who was recommended the itemitemID - ID of item that was recommendedhowMany - maximum number of items to returnList of RecommendedItem, ordered from most influential in recommended the
given item to leastorg.apache.mahout.cf.taste.common.TasteExceptionList<org.apache.mahout.cf.taste.recommender.RecommendedItem> recommend(long userID, int howMany, boolean considerKnownItems, org.apache.mahout.cf.taste.recommender.IDRescorer rescorer) throws org.apache.mahout.cf.taste.common.TasteException
userID - user for which recommendations are to be computedhowMany - desired number of recommendationsconsiderKnownItems - if true, items that the user is already associated to are candidates
for recommendation. Normally this is false.rescorer - rescoring function used to modify association strengths before ranking resultsList of recommended RecommendedItems, ordered from most strongly recommend to leastNotReadyException - if the recommender has no model available yetorg.apache.mahout.cf.taste.common.TasteException - if another error occursList<org.apache.mahout.cf.taste.recommender.RecommendedItem> recommendToMany(long[] userIDs, int howMany, boolean considerKnownItems, org.apache.mahout.cf.taste.recommender.IDRescorer rescorer) throws org.apache.mahout.cf.taste.common.TasteException
recommend(long, int, boolean, IDRescorer).org.apache.mahout.cf.taste.common.NoSuchUserException - if none of userIDs
exist in the model. Otherwise, unknown users are ignored.org.apache.mahout.cf.taste.common.TasteExceptionrecommend(long, int, boolean, IDRescorer)List<org.apache.mahout.cf.taste.recommender.RecommendedItem> recommendToAnonymous(long[] itemIDs, int howMany) throws org.apache.mahout.cf.taste.common.TasteException
itemIDs - item IDs that the anonymous user has interacted withhowMany - how many recommendations to returnNotReadyException - if the implementation has no usable model yetorg.apache.mahout.cf.taste.common.NoSuchItemException - if none of itemIDs
exist in the model. Otherwise, unknown items are ignored.org.apache.mahout.cf.taste.common.TasteExceptionrecommend(long, int)List<org.apache.mahout.cf.taste.recommender.RecommendedItem> recommendToAnonymous(long[] itemIDs, float[] values, int howMany) throws org.apache.mahout.cf.taste.common.TasteException
recommendToAnonymous(long[], int) but allows specifying values associated with items.itemIDs - item IDs that the anonymous user has interacted withvalues - values associated with given itemIDs. If not null, must be as many values as
there are item IDshowMany - how many recommendations to returnorg.apache.mahout.cf.taste.common.TasteExceptionestimateForAnonymous(long, long[], float[])List<org.apache.mahout.cf.taste.recommender.RecommendedItem> recommendToAnonymous(long[] itemIDs, int howMany, org.apache.mahout.cf.taste.recommender.IDRescorer rescorer) throws org.apache.mahout.cf.taste.common.TasteException
recommendToAnonymous(long[], int) but rescorer results like
recommend(long, int, boolean, IDRescorer). All items are assumed to be equally important
to the anonymous users -- strength "1".itemIDs - item IDs that the anonymous user has interacted withhowMany - how many recommendations to returnrescorer - rescoring function used to modify association strengths before ranking resultsorg.apache.mahout.cf.taste.common.NoSuchItemException - if none of itemIDs
exist in the model. Otherwise, unknown items are ignored.org.apache.mahout.cf.taste.common.TasteExceptionrecommendToAnonymous(long[], int)List<org.apache.mahout.cf.taste.recommender.RecommendedItem> recommendToAnonymous(long[] itemIDs, float[] values, int howMany, org.apache.mahout.cf.taste.recommender.IDRescorer rescorer) throws org.apache.mahout.cf.taste.common.TasteException
recommendToAnonymous(long[], int, IDRescorer) but lets caller specify strength scores associated
to each of the items.itemIDs - item IDs that the anonymous user has interacted withvalues - values corresponding to itemIDshowMany - how many recommendations to returnrescorer - rescoring function used to modify association strengths before ranking resultsorg.apache.mahout.cf.taste.common.NoSuchItemException - if none of itemIDs
exist in the model. Otherwise, unknown items are ignored.org.apache.mahout.cf.taste.common.TasteExceptionrecommendToAnonymous(long[], int),
recommendToAnonymous(long[], int, IDRescorer)List<org.apache.mahout.cf.taste.recommender.RecommendedItem> mostPopularItems(int howMany) throws org.apache.mahout.cf.taste.common.TasteException
howMany - how many items to returnNotReadyException - if the implementation has no usable model yetUnsupportedOperationException - if known items for each user have been configured to not
be loaded or recordedorg.apache.mahout.cf.taste.common.TasteExceptionList<org.apache.mahout.cf.taste.recommender.RecommendedItem> mostPopularItems(int howMany, org.apache.mahout.cf.taste.recommender.IDRescorer rescorer) throws org.apache.mahout.cf.taste.common.TasteException
org.apache.mahout.cf.taste.common.TasteExceptionfloat[] similarityToItem(long toItemID,
long... itemIDs)
throws org.apache.mahout.cf.taste.common.TasteException
toItemID - item to calculate similarity toitemIDs - items to calculate similarity fromorg.apache.mahout.cf.taste.common.NoSuchItemException - if none of itemIDs
exist in the model or if toItemID does not exist. Otherwise, unknown items are ignored.org.apache.mahout.cf.taste.common.TasteExceptionfloat[] estimatePreferences(long userID,
long... itemIDs)
throws org.apache.mahout.cf.taste.common.TasteException
estimatePreference(long, long), suitable for computing many estimates
at once. The return values correspond, in order, to the item IDs provided, in order.org.apache.mahout.cf.taste.common.TasteExceptionestimatePreference(long, long)float estimateForAnonymous(long toItemID,
long[] itemIDs)
throws org.apache.mahout.cf.taste.common.TasteException
estimatePreference(long, long) that, like
recommendToAnonymous(long[], float[], int), operates on "anonymous" users --
defined not by a previously known set of data, but data given in the request.toItemID - item for which the anonymous user's strength of interaction is to be estimateditemIDs - item IDs that the anonymous user has interacted withorg.apache.mahout.cf.taste.common.TasteExceptionrecommendToAnonymous(long[], float[], int)float estimateForAnonymous(long toItemID,
long[] itemIDs,
float[] values)
throws org.apache.mahout.cf.taste.common.TasteException
estimatePreference(long, long) that, like
recommendToAnonymous(long[], float[], int), operates on "anonymous" users --
defined not by a previously known set of data, but data given in the request.toItemID - item for which the anonymous user's strength of interaction is to be estimateditemIDs - item IDs that the anonymous user has interacted withvalues - values corresponding to itemIDsorg.apache.mahout.cf.taste.common.TasteExceptionrecommendToAnonymous(long[], float[], int)void ingest(Reader reader) throws org.apache.mahout.cf.taste.common.TasteException
ingest(File), but reads from a Reader.reader - source of CSV data to ingestNotReadyException - if the implementation has no usable model yetorg.apache.mahout.cf.taste.common.TasteExceptionvoid ingest(File file) throws org.apache.mahout.cf.taste.common.TasteException
setPreference(long, long, float). The input file should be in CSV format, where each
line is of the form userID,itemID,value. Note that the file may be compressed. If it is
make sure that its name reflects its compression -- gzip ending in ".gz", zip ending in ".zip",
deflate ending in ".deflate".file - CSV file to ingest, possibly compressed.NotReadyException - if the implementation has no usable model yetorg.apache.mahout.cf.taste.common.TasteExceptionvoid setPreference(long userID,
long itemID)
throws org.apache.mahout.cf.taste.common.TasteException
org.apache.mahout.cf.taste.common.TasteException - if the preference cannot be updated, due to a server errorNotReadyException - if the implementation has no usable model yetsetPreference(long, long, float)boolean isReady()
throws org.apache.mahout.cf.taste.common.TasteException
org.apache.mahout.cf.taste.common.TasteExceptionvoid await()
throws org.apache.mahout.cf.taste.common.TasteException,
InterruptedException
isReady() returns true.org.apache.mahout.cf.taste.common.TasteException - if an error occurs while checking isReady()InterruptedException - if the thread is interrupted while waitingboolean await(long time,
TimeUnit unit)
throws org.apache.mahout.cf.taste.common.TasteException,
InterruptedException
isReady() returns true, or the given timeout is reached.true if isReady() is true, or false if it timed outorg.apache.mahout.cf.taste.common.TasteException - if an error occurs while checking isReady()InterruptedException - if the thread is interrupted while waitingFastIDSet getAllUserIDs() throws org.apache.mahout.cf.taste.common.TasteException
org.apache.mahout.cf.taste.common.TasteExceptionFastIDSet getAllItemIDs() throws org.apache.mahout.cf.taste.common.TasteException
org.apache.mahout.cf.taste.common.TasteExceptionint getNumUserClusters()
throws org.apache.mahout.cf.taste.common.TasteException
UnsupportedOperationException - if not running in distributed mode, or not computing
clusters in the Computation Layerorg.apache.mahout.cf.taste.common.TasteExceptionint getNumItemClusters()
throws org.apache.mahout.cf.taste.common.TasteException
UnsupportedOperationException - if not running in distributed mode, or not computing
clusters in the Computation Layerorg.apache.mahout.cf.taste.common.TasteExceptionFastIDSet getUserCluster(int n) throws org.apache.mahout.cf.taste.common.TasteException
n - cluster number to retrieve (0-based)UnsupportedOperationException - if not running in distributed mode, or not computing
clusters in the Computation LayerIndexOutOfBoundsException - if cluster number if out of boundsorg.apache.mahout.cf.taste.common.TasteExceptionFastIDSet getItemCluster(int n) throws org.apache.mahout.cf.taste.common.TasteException
n - cluster number to retrieve (0-based)UnsupportedOperationException - if not running in distributed mode, or not computing
clusters in the Computation LayerIndexOutOfBoundsException - if cluster number if out of boundsorg.apache.mahout.cf.taste.common.TasteExceptionCopyright © 2012-2013 Myrrix Ltd. All Rights Reserved.