Displaying 3 results from an estimated 3 matches for "perf1".
Did you mean:
perf
2014 Jun 20
2
Como construir una curva ROC
...os manuales el script del ROCR para hacer la curva era algo asi:
library(ROCR)
data(ROCR.simple)
pred <- prediction( ROCR.simple$predictions, ROCR.simple$labels)
perf <- performance(pred,"tpr","fpr")
plot(perf)
## precision/recall curve (x-axis: recall, y-axis: precision)
perf1 <- performance(pred, "prec", "rec")
plot(perf1)
## sensitivity/specificity curve (x-axis: specificity,
## y-axis: sensitivity)
perf1 <- performance(pred, "sens", "spec")
plot(perf1)
Me parecio mas fácil de entender que el del otro paquete pero no se co...
2009 May 12
1
ROCR: auc and logarithm plot
...I have two questions regarding ROCR.
1. I have tried to understand how to extract area-under-curve value by looking at the ROCR document and googling. Still I am not sure if I am doing the right thing. Here is my code, is "auc1" the auc value?
"
pred1 <- prediction(resp1,label1)
perf1 <- performance(pred1,"tpr","fpr")
plot( perf1, type="l",col=1 )
auc1 <- performance(pred1,"auc")
auc1 <- auc1@y.values[[2]]
"
2. I have to compare two models that have very close ROCs. I'd like to have a more distinguishable plot of the RO...
2014 Jun 23
2
Resumen de R-help-es, Vol 64, Envío 33
...os manuales el script del ROCR para hacer la curva era algo asi:
library(ROCR)
data(ROCR.simple)
pred <- prediction( ROCR.simple$predictions, ROCR.simple$labels)
perf <- performance(pred,"tpr","fpr")
plot(perf)
## precision/recall curve (x-axis: recall, y-axis: precision)
perf1 <- performance(pred, "prec", "rec")
plot(perf1)
## sensitivity/specificity curve (x-axis: specificity,
## y-axis: sensitivity)
perf1 <- performance(pred, "sens", "spec")
plot(perf1)
Me parecio mas fácil de entender que el del otro paquete pero no se co...