我试图使用某些变量派生的特征来预测种族。从我以前的问题How to interpret this triangular shape ROC AUC curve?,我学会了使用decision_function或prediction_proba代替实际预测来拟合ROC曲线。 我可以使用下面的代码来生成ROC-AUC曲线,与SVM分类 # coding=utf-8
import pandas as
我是机器学习的新手,我目前正试图在Python 3.4中应用朴素贝叶斯分类器来实现ROC曲线。分类的实际代码给出有: from __future__ import division
from collections import defaultdict
from math import log
def train(samples):
classes, freq = default