We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 480d037 commit 9b5fe32Copy full SHA for 9b5fe32
ratings.py
@@ -45,8 +45,11 @@ def recommendations(self):
45
if tmp < minimum:
46
closest = otherperson
47
minimum = tmp
48
- notread = np.where(np.array(self.myratings == 0))
49
- maxindex = np.where(self.myratings[otherperson][notread] == self.myratings[otherperson][notread].max())
+ notread = np.where(np.array(self.myratings[self.persons.index(otherperson)] == 0))
+ print self.myratings
50
+ print self.persons.index(otherperson)
51
+ print notread
52
+ maxindex = np.where(self.myratings[self.persons.index(otherperson)][notread] == self.myratings[self.persons.index(otherperson)][notread].max())
53
allrecommendations[person] = self._data[otherperson][maxindex]
54
return allrecommendations
55
0 commit comments