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

Examples of org.apache.mahout.cf.taste.impl.recommender.slopeone.MemoryDiffStorage


import org.apache.mahout.cf.taste.recommender.slopeone.DiffStorage;

class LimitedMemoryDiffStorage {

  Recommender buildRecommender(DataModel model) throws TasteException {
    DiffStorage diffStorage = new MemoryDiffStorage(
        model, Weighting.WEIGHTED, 10000000L);
    return new SlopeOneRecommender(
        model, Weighting.WEIGHTED, Weighting.WEIGHTED, diffStorage);
  }
View Full Code Here


import org.apache.mahout.cf.taste.recommender.slopeone.DiffStorage;

class SlopeOneNoWeighting {

  Recommender buildRecommender(DataModel model) throws TasteException {
    DiffStorage diffStorage = new MemoryDiffStorage(
        model, Weighting.UNWEIGHTED, Long.MAX_VALUE);
    return new SlopeOneRecommender(
      model,
      Weighting.UNWEIGHTED,
      Weighting.UNWEIGHTED,
View Full Code Here

TOP

Related Classes of org.apache.mahout.cf.taste.impl.recommender.slopeone.MemoryDiffStorage

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.