avatar
ordered label in ROCR# Biology - 生物学
G*G
1
I don't understand how to order the label in ROCR package in order to
get the correct result. I am wondering whether you can help me.
library(ROCR)
data(ROCR.simple)
pred svm.auc plot(svm.auc)
#####label
ROCR.simple$labels[ROCR.simple$labels=="0"]="tumor"
ROCR.simple$labels[ROCR.simple$labels==1]="normal"
pred svm.auc plot(svm.auc)
The ROC curve is flipped. How do we know which order of labels we should
choose?
Is this a bug of ROC?
thank you very much.
avatar
N*n
2
tumor>normal
1>0,
你把本来的1,0 给翻了个因为tumor 当中1, normal 为0.

【在 G***G 的大作中提到】
: I don't understand how to order the label in ROCR package in order to
: get the correct result. I am wondering whether you can help me.
: library(ROCR)
: data(ROCR.simple)
: pred : svm.auc : plot(svm.auc)
: #####label
: ROCR.simple$labels[ROCR.simple$labels=="0"]="tumor"
: ROCR.simple$labels[ROCR.simple$labels==1]="normal"

avatar
G*G
3
but why can we not label arbitrarily?
the prediton and label corresponds with each other very good.
evern our eyes can find the relationship.

【在 N******n 的大作中提到】
: tumor>normal
: 1>0,
: 你把本来的1,0 给翻了个因为tumor 当中1, normal 为0.

avatar
l*1
4
那需要你自己更新一下那个源程序喽 R
ps: it is not free lunch if you want other do that.
USD or funding share might needed.

【在 G***G 的大作中提到】
: but why can we not label arbitrarily?
: the prediton and label corresponds with each other very good.
: evern our eyes can find the relationship.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。