Example usage for org.apache.mahout.cf.taste.impl.recommender TopItems getTopUsers

List of usage examples for org.apache.mahout.cf.taste.impl.recommender TopItems getTopUsers

Introduction

In this page you can find the example usage for org.apache.mahout.cf.taste.impl.recommender TopItems getTopUsers.

Prototype

public static long[] getTopUsers(int howMany, LongPrimitiveIterator allUserIDs, IDRescorer rescorer,
            Estimator<Long> estimator) throws TasteException 

Source Link

Usage

From source file:de.unima.dws.webmining.rs.recommender.AvgUserPrefAdaptedUserBasedRecommender.java

License:Apache License

private long[] doMostSimilarUsers(int howMany, TopItems.Estimator<Long> estimator) throws TasteException {
    DataModel model = getDataModel();/*from   www . ja  v  a  2 s  .c  o m*/
    return TopItems.getTopUsers(howMany, model.getUserIDs(), null, estimator);
}