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

Examples of org.apache.mahout.cf.taste.impl.recommender.GenericBooleanPrefItemBasedRecommender


    try {
      similarity = new HybridSimilarity(dataModel, dataFileDirectory);
    } catch (IOException ioe) {
      throw new TasteException(ioe);
    }
    recommender = new GenericBooleanPrefItemBasedRecommender(dataModel, similarity);
  }
View Full Code Here


  public void testBoolean() throws Exception {
    DataModel model = getBooleanDataModel();
    RecommenderBuilder builder = new RecommenderBuilder() {
      @Override
      public Recommender buildRecommender(DataModel dataModel) {
        return new GenericBooleanPrefItemBasedRecommender(dataModel, new LogLikelihoodSimilarity(dataModel));
      }
    };
    DataModelBuilder dataModelBuilder = new DataModelBuilder() {
      @Override
      public DataModel buildDataModel(FastByIDMap<PreferenceArray> trainingData) {
View Full Code Here

  public void testBoolean() throws Exception {
    DataModel model = getBooleanDataModel();
    RecommenderBuilder builder = new RecommenderBuilder() {
      @Override
      public Recommender buildRecommender(DataModel dataModel) {
        return new GenericBooleanPrefItemBasedRecommender(dataModel, new LogLikelihoodSimilarity(dataModel));
      }
    };
    DataModelBuilder dataModelBuilder = new DataModelBuilder() {
      @Override
      public DataModel buildDataModel(FastByIDMap<PreferenceArray> trainingData) {
View Full Code Here

      // create a data model
      dataModel = new GenericDataModel(preferecesOfUsersFastMap);
     
      // Instantiate the recommender
      recommender = new GenericBooleanPrefItemBasedRecommender(dataModel, new LogLikelihoodSimilarity(dataModel));
    } catch (URISyntaxException e) {
      log.log(Level.SEVERE, "Problem with the file URL", e);
    } catch (FileNotFoundException e) {
      log.log(Level.SEVERE, DATA_FILE_NAME+" was not found", e);
    } catch (IOException e) {
View Full Code Here

    try {
      similarity = new HybridSimilarity(dataModel, dataFileDirectory);
    } catch (IOException ioe) {
      throw new TasteException(ioe);
    }
    recommender = new GenericBooleanPrefItemBasedRecommender(dataModel, similarity);
  }
View Full Code Here

TOP

Related Classes of org.apache.mahout.cf.taste.impl.recommender.GenericBooleanPrefItemBasedRecommender

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.