@Override
public Recommendation read(Kryo kryo, Input input, Class<Recommendation> type) {
String scoringName = kryo.readObject(input, String.class);
SimScore scoring;
if (scoringName.equals("cosinesq")) {
scoring = new CosineSquareSimilarity();
} else if (scoringName.equals("jensenshannon")) {
scoring = new JensenShannonDivergence();
} else {
scoring = new CosineSquareSimilarity();
}
int limits = kryo.readObject(input, int.class);
int sortersSize = kryo.readObject(input, int.class);