assertEquals(0.5, second.getValue(), EPSILON);
}
public void testMostSimilarToMultiple() throws Exception {
ItemBasedRecommender recommender = buildRecommender2();
List<RecommendedItem> similar = recommender.mostSimilarItems(new long[] {0, 1}, 2);
assertNotNull(similar);
assertEquals(2, similar.size());
RecommendedItem first = similar.get(0);
RecommendedItem second = similar.get(1);
assertEquals(2, first.getItemID());