我想用rdkit实现计算ROC曲线:
rdkit.ML.Scoring.Scoring.calcuc(分数,col)
确定ROC曲线下的面积
代码:
import rdkit.ML.Scoring.Scoring
rdkit.ML.Scoring.Scoring.CalcAUC(scores, y)
我得到以下错误:
IndexError: invalid index to scalar variable.
我的数据:
scores
array([32.336, 31.894, 31.74 , ..., -0.985, -1.629, -1.82 ])
y
array(['Inactive', 'Inactive', 'Inactive', ..., 'Inactive', 'Inactive','Inactive'], dtype=object)
我不知道怎么了
如上述评论所述。
CalcAUC
和其他度量的文档是here,但非常少相关问题 更多 >
编程相关推荐