8e958d70fa54c0b249f7e6de27fd57cbaa7563d4,algorithm/rating/SlopeOne.py,SlopeOne,predict,#SlopeOne#Any#Any#,29
Before Change
continue
sum = 0
freqSum = 0
for item2 in itemDict.keys():
sum = sum + ((itemDict[item2] + self.diffAverage[u][item2]) * self.freq[u][item2])
freqSum = freqSum + self.freq[u][item2]
pred = sum/freqSum
else:
pred = self.dao.itemMeans[u]
After Change
sum += (rating + diff) * count
freqSum += count
try:
pred = float(sum)/freqSum
except ZeroDivisionError:
pred = self.dao.userMeans[u]
elif self.dao.containsItem(i):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: Coder-Yu/RecQ
Commit Name: 8e958d70fa54c0b249f7e6de27fd57cbaa7563d4
Time: 2016-11-13
Author: fqq0429@gmail.com
File Name: algorithm/rating/SlopeOne.py
Class Name: SlopeOne
Method Name: predict
Project Name: allenai/allennlp
Commit Name: ae9c9c836891a10d221691df266d754b6557c644
Time: 2018-10-11
Author: markn@allenai.org
File Name: allennlp/semparse/worlds/text2sql_world.py
Class Name: Text2SqlWorld
Method Name: get_action_sequence_and_all_actions
Project Name: ilastik/ilastik
Commit Name: c70362d7dae523cce63c049da17f39a340139574
Time: 2015-03-20
Author: webmaster@burgerdev.de
File Name: lazyflow/operators/opCompressedCache.py
Class Name: OpCompressedCache
Method Name: usedMemory