BAEL-3781: Fix Slope One implementation (#8570)
This commit is contained in:
parent
6bca22524a
commit
b128f56a6c
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user