def fit(self, weighted, show_progress=True):
self.similarity = all_pairs_knn(weighted, self.K,<EOL>show_progress=show_progress,<EOL>num_threads=self.num_threads).tocsr()<EOL>self.scorer = NearestNeighboursScorer(self.similarity)<EOL>
Computes and stores the similarity matrix