BAEL-3781: Fix Slope One implementation (#8570)

This commit is contained in:
kwoyke
2020-01-23 23:43:48 +01:00
committed by Grzegorz Piwowarek
parent 51b92a3154
commit 23a8c9e0c1

View File

@@ -98,7 +98,7 @@ public class SlopeOne {
for (Item j : InputData.items) {
if (e.getValue().containsKey(j)) {
clean.put(j, e.getValue().get(j));
} else {
} else if (!clean.containsKey(j)) {
clean.put(j, -1.0);
}
}