eb9b33646872a2565dae65b17e9cb908e886386a,algorithm/rating/SlopeOne.py,SlopeOne,predict,#SlopeOne#,30

Before Change




    def predict(self,u,i):
        for u in self.dao.testSet_u.keys():
            if SymmetricMatrix.contains(u) == True://should use another interface
                itemList = self.dao.row(u)>0
                for item in self.dao.testSet_u[u].keys():

After Change




    def predict(self,u,i):
        itemDict = {}
        // check if the user existed in trainSet or not
        if self.dao.containsUser(u) == True:
            for item in self.dao.row(u).valuse():
                if item.values() > 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Coder-Yu/RecQ
Commit Name: eb9b33646872a2565dae65b17e9cb908e886386a
Time: 2016-11-12
Author: 156698920@qq.com
File Name: algorithm/rating/SlopeOne.py
Class Name: SlopeOne
Method Name: predict


Project Name: erikbern/ann-benchmarks
Commit Name: 5bc4b9e188df7e1aa485c33af16f1a8c913d9633
Time: 2018-09-29
Author: maau@itu.dk
File Name: create_website.py
Class Name:
Method Name: build_index_site


Project Name: gooofy/zamia-speech
Commit Name: 85861ea5c5320518267405bef050a0dab933e069
Time: 2018-02-17
Author: guenter@zamia.org
File Name: phone_gen.py
Class Name:
Method Name: