edu.qut.cs.rcmd.core.alg.wtr.impl
Class WeightedTagFormulaImpl

java.lang.Object
  extended by edu.qut.cs.rcmd.core.alg.wtr.impl.WeightedTagFormulaImpl
All Implemented Interfaces:
WeightedTagFormula

public class WeightedTagFormulaImpl
extends Object
implements WeightedTagFormula


Constructor Summary
WeightedTagFormulaImpl(TagModel tagModel, RecommenderProbabilityProvider recommenderProbabilityProvider)
           
 
Method Summary
 Map<String,Double> getItemRepresentation(long itemId)
           
 Map<String,Double> getUserProfile(long userId)
           
 List<Double> hugeBatchUserBasedTagRelevances(long userId, String srcTag, List<String> targetTags, org.apache.mahout.cf.taste.impl.common.FastIDSet itemIds)
           
 double iif(String tag)
           
 double iuf(String tag)
           
 List<Double> simpleBatchUserBasedTagRelevances(long userId, String srcTag, List<String> targetTags, org.apache.mahout.cf.taste.impl.common.FastIDSet itemIds, int totalSize)
           
 double tagPreference(long userId, String tag)
           
 double tagToItemRelevence(long itemId, String tag)
           
 double userBasedTagRelevance(long userId, String srcTag, String targetTag)
           
 List<Double> userBasedTagRelevances(long userId, String srcTag, List<String> targetTags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedTagFormulaImpl

public WeightedTagFormulaImpl(TagModel tagModel,
                              RecommenderProbabilityProvider recommenderProbabilityProvider)
Method Detail

userBasedTagRelevance

public double userBasedTagRelevance(long userId,
                                    String srcTag,
                                    String targetTag)
Specified by:
userBasedTagRelevance in interface WeightedTagFormula

userBasedTagRelevances

public List<Double> userBasedTagRelevances(long userId,
                                           String srcTag,
                                           List<String> targetTags)
Specified by:
userBasedTagRelevances in interface WeightedTagFormula

hugeBatchUserBasedTagRelevances

public List<Double> hugeBatchUserBasedTagRelevances(long userId,
                                                    String srcTag,
                                                    List<String> targetTags,
                                                    org.apache.mahout.cf.taste.impl.common.FastIDSet itemIds)

simpleBatchUserBasedTagRelevances

public List<Double> simpleBatchUserBasedTagRelevances(long userId,
                                                      String srcTag,
                                                      List<String> targetTags,
                                                      org.apache.mahout.cf.taste.impl.common.FastIDSet itemIds,
                                                      int totalSize)

tagToItemRelevence

public double tagToItemRelevence(long itemId,
                                 String tag)
Specified by:
tagToItemRelevence in interface WeightedTagFormula

iif

public double iif(String tag)
Specified by:
iif in interface WeightedTagFormula

getItemRepresentation

public Map<String,Double> getItemRepresentation(long itemId)
Specified by:
getItemRepresentation in interface WeightedTagFormula

tagPreference

public double tagPreference(long userId,
                            String tag)
Specified by:
tagPreference in interface WeightedTagFormula

iuf

public double iuf(String tag)
Specified by:
iuf in interface WeightedTagFormula

getUserProfile

public Map<String,Double> getUserProfile(long userId)
Specified by:
getUserProfile in interface WeightedTagFormula


Copyright © 2012. All Rights Reserved.