8e958d70fa54c0b249f7e6de27fd57cbaa7563d4,algorithm/rating/SlopeOne.py,SlopeOne,computeAverage,#SlopeOne#,14
Before Change
new_x1,new_x2 = qmath.common(self.dao.testSet_i.keys()[i1],i2)
diff = new_x1 - new_x2
diffAverage_sub.setdefault(i2,diff.mean())
freq_sub.setdefault(i2,len(diff))
self.diffAverage[i1] = diffAverage_sub
self.freq[i1] = freq_sub
After Change
for item2 in self.dao.item:
new_x1,new_x2 = qmath.common(self.dao.col(item),self.dao.col(item2))
diff = new_x1 - new_x2
if len(diff)==0:
diffAverage_sub.setdefault(self.dao.item[item2], 0)
else:
diffAverage_sub.setdefault(self.dao.item[item2],diff.mean())
freq_sub.setdefault(self.dao.item[item2],len(diff))
self.diffAverage[item] = diffAverage_sub
self.freq[item] = freq_sub
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: computeAverage
Project Name: librosa/librosa
Commit Name: 396235516b909b24cd47468e9693ca2e4d66edc8
Time: 2015-10-31
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: waveplot
Project Name: arviz-devs/arviz
Commit Name: 7ffcd4a2a5213c0a7de9fdc3aff4725c166db986
Time: 2019-01-27
Author: ahartikainen@users.noreply.github.com
File Name: arviz/plots/ppcplot.py
Class Name:
Method Name: plot_ppc