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 6bca22524a
commit b128f56a6c

View File

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