svm.py 文件源码

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

项目:svm-text-classification-api 作者: viniciusbo 项目源码 文件源码
def cross_validation_report(clf, dataset):
  data = count_vectorizer.transform([row[0] for row in dataset])
  target = [row[1] for row in dataset]
  return cross_validation.cross_val_score(clf, data, target)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号