Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def fit(self, counts, show_progress=True):
# cosine distance is just the dot-product of a normalized matrix
ItemItemRecommender.fit(self, normalize(counts), show_progress)
def fit(self, counts, show_progress=True):
weighted = normalize(tfidf_weight(counts))
ItemItemRecommender.fit(self, weighted, show_progress)
def fit(self, counts, show_progress=True):
weighted = bm25_weight(counts, self.K1, self.B)
ItemItemRecommender.fit(self, weighted, show_progress)