edu.qut.cs.rcmd.core.tag.recommender
Interface TagRecommender

All Known Subinterfaces:
UserBasedTagRecommender
All Known Implementing Classes:
AbstractTagRecommender, GenericUserBasedTagRecommender

public interface TagRecommender

Author:
n7374186

Method Summary
 float estimateTagScore(long userID, long itemID, String tag)
           
 org.apache.mahout.cf.taste.model.DataModel getDataModel()
           
 TagModel getTagModel()
           
 List<RecommendedTag> recommend(long userID, long itemID, int howMany)
           
 List<RecommendedTag> recommend(long userID, long itemID, int howMany, org.apache.mahout.cf.taste.recommender.IDRescorer rescorer)
           
 void removeTagScore(long userID, long itemID, String tag)
           
 void setTagScore(long userID, long itemID, String tag, float value)
           
 

Method Detail

recommend

List<RecommendedTag> recommend(long userID,
                               long itemID,
                               int howMany)
                               throws org.apache.mahout.cf.taste.common.TasteException
Parameters:
userID - user for which recommendations are to be computed
itemID - item for which recommendations are to be computed
howMany - desired number of recommendations
Returns:
List of recommended RecommendedTags, ordered from most strongly recommend to least
Throws:
org.apache.mahout.cf.taste.common.TasteException - if an error occurs while accessing the DataModel

recommend

List<RecommendedTag> recommend(long userID,
                               long itemID,
                               int howMany,
                               org.apache.mahout.cf.taste.recommender.IDRescorer rescorer)
                               throws org.apache.mahout.cf.taste.common.TasteException
Parameters:
userID - user for which recommendations are to be computed
itemID - item for which recommendations are to be computed
howMany - desired number of recommendations
rescorer - rescoring function to apply before final list of recommendations is determined
Returns:
List of recommended RecommendedItems, ordered from most strongly recommend to least
Throws:
org.apache.mahout.cf.taste.common.TasteException - if an error occurs while accessing the DataModel

estimateTagScore

float estimateTagScore(long userID,
                       long itemID,
                       String tag)
                       throws org.apache.mahout.cf.taste.common.TasteException
Parameters:
userID - user ID whose tag score is to be estimated
itemID - item ID to estimate tag score for
tag - tag to estimate tag score for
Returns:
an estimated tag score if the tag has not been expressed a tag score for the item for this user, or else the actual tag score for the tag. If a tag score cannot be estimated, returns Double.NaN
Throws:
org.apache.mahout.cf.taste.common.TasteException - if an error occurs while accessing the DataModel

setTagScore

void setTagScore(long userID,
                 long itemID,
                 String tag,
                 float value)
                 throws org.apache.mahout.cf.taste.common.TasteException
Parameters:
userID - user to set tag score for
itemID - item to set tag score for
tag - tag to set tag score for
value - tag score value
Throws:
org.apache.mahout.cf.taste.common.TasteException - if an error occurs while accessing the DataModel

removeTagScore

void removeTagScore(long userID,
                    long itemID,
                    String tag)
                    throws org.apache.mahout.cf.taste.common.TasteException
Parameters:
userID - user from which to remove tag score
itemID - item for which to remove tag score
tag - tag for which to remove tag score
Throws:
org.apache.mahout.cf.taste.common.TasteException - if an error occurs while accessing the DataModel

getDataModel

org.apache.mahout.cf.taste.model.DataModel getDataModel()
Returns:
underlying DataModel used by this implementation currently using TagModel interface from core.model.tag (Soloman's)

getTagModel

TagModel getTagModel()


Copyright © 2012. All Rights Reserved.