Package org.apache.mahout.cf.taste.recommender

Examples of org.apache.mahout.cf.taste.recommender.IDRescorer


  private final class RecommendationRetriever implements Retriever<Long,Recommendations> {
    @Override
    public Recommendations get(Long key) throws TasteException {
      log.debug("Retrieving new recommendations for user ID '{}'", key);
      int howMany = maxHowMany[0];
      IDRescorer rescorer = currentRescorer;
      List<RecommendedItem> recommendations =
          rescorer == null ? recommender.recommend(key, howMany, null, currentlyIncludeKnownItems) :
              recommender.recommend(key, howMany, rescorer, currentlyIncludeKnownItems);
      return new Recommendations(Collections.unmodifiableList(recommendations));
    }
View Full Code Here

TOP

Related Classes of org.apache.mahout.cf.taste.recommender.IDRescorer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.