Python Forum
reccomending, according to the selected listbox value
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
reccomending, according to the selected listbox value
#2
Inside the function def getRecommendations(prefs, person, similarity = sim_pearson):
its expecting the passed in prefs to be an object that can be iterated
for other in prefs:
you are calling this method with b=getRecommendations(STproject.dictionary,STproject.selected,similarity=sim_distance)
it looks like you want to be calling the instance instead of the class
b=getRecommendations(self.dictionary,self.selected,similarity=sim_distance)
The method dictionary does not return a iterable of prefs and the method selected does not return a person.
Reply


Messages In This Thread
RE: reccomending, according to the selected listbox value - by Yoriz - Jul-24-2019, 05:58 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020