由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Biology版 - ordered label in ROCR
相关主题
Jobs's Rare Disease Ran Predictable Course from WSJnuclear localization signal prediction
文献求助: cancer discoveryPaper help, Thank you!
ppv vs ROCPostdoctoral Fellowship of Protein Structure Prediction at Univ. Missouri
rocpaper求助
prePPI protein protein interaction prediction请教:这样的基因标识是什么意思?
how to predict the network of miRNAs?推荐methylation prediction 软件
Re: Promoter Prediction再问一下单独发paper的问题
Re: a bioinformatics questionHelp recommend gene prediction softwares
相关话题的讨论汇总
话题: labels话题: rocr话题: pred话题: label话题: roc
进入Biology版参与讨论
1 (共1页)
G***G
发帖数: 16778
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 <- prediction(ROCR.simple$predictions,ROCR.simple$labels)
svm.auc <- performance(pred, 'tpr', 'fpr')
plot(svm.auc)
#####label
ROCR.simple$labels[ROCR.simple$labels=="0"]="tumor"
ROCR.simple$labels[ROCR.simple$labels==1]="normal"
pred <- prediction(ROCR.simple$predictions,ROCR.simple$labels)
svm.auc <- performance(pred, 'tpr', 'fpr')
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.
N******n
发帖数: 3003
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 <- prediction(ROCR.simple$predictions,ROCR.simple$labels)
: svm.auc <- performance(pred, 'tpr', 'fpr')
: plot(svm.auc)
: #####label
: ROCR.simple$labels[ROCR.simple$labels=="0"]="tumor"
: ROCR.simple$labels[ROCR.simple$labels==1]="normal"

G***G
发帖数: 16778
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.

l**********1
发帖数: 5204
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.

1 (共1页)
进入Biology版参与讨论
相关主题
Help recommend gene prediction softwaresprePPI protein protein interaction prediction
有没有做蛋白质结构功能预测的牛哥牛姐?问个发文章的问题how to predict the network of miRNAs?
secondary structure prediction softwareRe: Promoter Prediction
请大家介绍一下computational biology领域的大牛Re: a bioinformatics question
Jobs's Rare Disease Ran Predictable Course from WSJnuclear localization signal prediction
文献求助: cancer discoveryPaper help, Thank you!
ppv vs ROCPostdoctoral Fellowship of Protein Structure Prediction at Univ. Missouri
rocpaper求助
相关话题的讨论汇总
话题: labels话题: rocr话题: pred话题: label话题: roc