BAEL-3781: Fix Slope One implementation (#8570)
This commit is contained in:
committed by
Grzegorz Piwowarek
parent
51b92a3154
commit
23a8c9e0c1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user