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: