From 89fa4e34c7a40e3511274b70224eda323f73b06b Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Mon, 6 Sep 2021 17:27:17 -0500 Subject: [PATCH] a --- .../mooc/nonpers/assoc/BasicAssociationModelProvider.java | 1 + .../lenskit/mooc/nonpers/mean/DampedItemMeanModelProvider.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/nonpers-assignment/src/main/java/org/lenskit/mooc/nonpers/assoc/BasicAssociationModelProvider.java b/nonpers-assignment/src/main/java/org/lenskit/mooc/nonpers/assoc/BasicAssociationModelProvider.java index ab492ed..db8d722 100644 --- a/nonpers-assignment/src/main/java/org/lenskit/mooc/nonpers/assoc/BasicAssociationModelProvider.java +++ b/nonpers-assignment/src/main/java/org/lenskit/mooc/nonpers/assoc/BasicAssociationModelProvider.java @@ -71,6 +71,7 @@ public class BasicAssociationModelProvider implements Provider LongSortedSet yUsers = yEntry.getValue(); // TODO Compute P(Y & X) / P(X) and store in itemScores + itemScores.addTo(yId, 1.0 / xUsers.size()); } // save the score map to the main map diff --git a/nonpers-assignment/src/main/java/org/lenskit/mooc/nonpers/mean/DampedItemMeanModelProvider.java b/nonpers-assignment/src/main/java/org/lenskit/mooc/nonpers/mean/DampedItemMeanModelProvider.java index 54b7856..51a185e 100644 --- a/nonpers-assignment/src/main/java/org/lenskit/mooc/nonpers/mean/DampedItemMeanModelProvider.java +++ b/nonpers-assignment/src/main/java/org/lenskit/mooc/nonpers/mean/DampedItemMeanModelProvider.java @@ -62,7 +62,6 @@ public class DampedItemMeanModelProvider implements Provider { */ @Override public ItemMeanModel get() { - // TODO Compute damped means Long2DoubleOpenHashMap means = new Long2DoubleOpenHashMap(); Long2IntOpenHashMap lens = new Long2IntOpenHashMap(); double globalMean = 0;