twenty_news_group.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:DataScience-And-MachineLearning-Handbook-For-Coders 作者: wxyyxc1992 项目源码 文件源码
def predict(self, docs):
        """
        ???????????
        """

        X_new_counts = self.count_vect.transform(docs)

        tfidf_transformer = TfidfTransformer().fit(X_new_counts)

        X_new_tfidf = tfidf_transformer.transform(X_new_counts)

        return self.clf.predict(X_new_tfidf)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号