{null, null, null, null, 1.0},
});
UserSimilarity similarity = new PearsonCorrelationSimilarity(dataModel);
UserNeighborhood neighborhood = new NearestNUserNeighborhood(3, similarity, dataModel);
UserBasedRecommender recommender = new GenericUserBasedRecommender(dataModel, neighborhood, similarity);
long[] mostSimilar = recommender.mostSimilarUserIDs(4, 3);
assertNotNull(mostSimilar);
assertEquals(0, mostSimilar.length);
}
private static UserBasedRecommender buildRecommender() throws TasteException {