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

Examples of org.apache.mahout.cf.taste.impl.recommender.knn.ConjugateGradientOptimizer


class KnnBasedRecommender {

  Recommender buildRecommender(DataModel model) {
    ItemSimilarity similarity = new LogLikelihoodSimilarity(model);
    Optimizer optimizer = new ConjugateGradientOptimizer();
    return new KnnItemBasedRecommender(model, similarity, optimizer, 10);
  }
View Full Code Here

TOP

Related Classes of org.apache.mahout.cf.taste.impl.recommender.knn.ConjugateGradientOptimizer

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.