public static void runLoad(Recommender recommender) throws TasteException {
DataModel dataModel = recommender.getDataModel();
int numUsers = dataModel.getNumUsers();
double sampleRate = 1000.0 / numUsers;
LongPrimitiveIterator userSampler = SamplingLongPrimitiveIterator.maybeWrapIterator(dataModel
.getUserIDs(), sampleRate);
recommender.recommend(userSampler.next(), 10); // Warm up
Collection<Callable<Void>> callables = new ArrayList<Callable<Void>>();
while (userSampler.hasNext()) {
callables.add(new LoadCallable(recommender, userSampler.next()));
}
AbstractDifferenceRecommenderEvaluator.execute(callables, new AtomicInteger());
}