hi guys,
I'm sure it's something silly but I can't figure out what's wrong with this code:
it prints the following:
INFO: Number of users in the dataset: 6033
INFO: Evaluator callables size 3182
but these numbers should be identical.
thanks for your help
Tom
I'm sure it's something silly but I can't figure out what's wrong with this code:
Code:
HashMap allWeights = weights.getAllWeights();
Iterator itr = allWeights.entrySet().iterator();
log.info("Number of users in the dataset: {}", allWeights.size());
Collection<Callable<Void>> evaluatorCallables = new ArrayList<Callable<Void>>();
while (itr.hasNext()) {
Map.Entry entry = (Map.Entry) itr.next();
long uid = (Long) entry.getKey();
ArrayList<LongDoublePair> movieList = (ArrayList<LongDoublePair>) entry.getValue();
evaluatorCallables.add(new EvaluatorCallable(uid, movieList, testModel));
}
log.info("Evaluator callables size {}", evaluatorCallables.size());
it prints the following:
INFO: Number of users in the dataset: 6033
INFO: Evaluator callables size 3182
but these numbers should be identical.
thanks for your help
Tom
Comment