【发布时间】:2017-08-28 03:56:58
【问题描述】:
我正在关注 this StackOverflow answer 来计算我的数据中的 AUC 分数,但如果我尝试运行脚本,它会返回一个 TypeError。
TypeError: ufunc 'subtract' 不包含带有签名的循环 匹配类型 dtype('S32') dtype('S32') dtype('S32')
我不明白,因为roc_curve 函数工作正常,所以我希望auc 函数也应该工作。
我已经检查了我的测试数组的dtype,它们都是float64。
感谢您的帮助。
【问题讨论】:
标签: python machine-learning scikit-learn typeerror roc