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
1 changed files with 1 additions and 1 deletions

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);
}
}