Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (7 sloc) 286 Bytes
from vectorSimilarities import VectorSimilarities
class MovieSimilarities(VectorSimilarities):
def input(self, key, line):
user_id, item_id, rating = line.split('|')
yield item_id, (user_id, float(rating))
if __name__ == '__main__':
MovieSimilarities.run()