MCPcopy
hub / github.com/apachecn/ailearning / fit

Method fit

src/python/16.RecommenderSystems/python/Recommender.py:23–24  ·  view source on GitHub ↗
(self, x, distance=Jaccard)

Source from the content-addressed store, hash-verified

21
22 # 训练函数
23 def fit(self, x, distance=Jaccard):
24 self.sim = self.similarity(x, distance)
25
26 # 推荐函数
27 def recommend(self, a):

Calls 1

similarityMethod · 0.95

Tested by

no test coverage detected