This commit is contained in:
Michael Zhang 2021-09-06 17:27:17 -05:00
parent 33437b95c1
commit 89fa4e34c7
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
2 changed files with 1 additions and 1 deletions

View file

@ -71,6 +71,7 @@ public class BasicAssociationModelProvider implements Provider<AssociationModel>
LongSortedSet yUsers = yEntry.getValue(); LongSortedSet yUsers = yEntry.getValue();
// TODO Compute P(Y & X) / P(X) and store in itemScores // 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 // save the score map to the main map

View file

@ -62,7 +62,6 @@ public class DampedItemMeanModelProvider implements Provider<ItemMeanModel> {
*/ */
@Override @Override
public ItemMeanModel get() { public ItemMeanModel get() {
// TODO Compute damped means
Long2DoubleOpenHashMap means = new Long2DoubleOpenHashMap(); Long2DoubleOpenHashMap means = new Long2DoubleOpenHashMap();
Long2IntOpenHashMap lens = new Long2IntOpenHashMap(); Long2IntOpenHashMap lens = new Long2IntOpenHashMap();
double globalMean = 0; double globalMean = 0;