Yes, that's exactly what I am after. Thank you for clarifying my problem for me!
I'll try to dive into the plot.performance function.
Best,
Tim
>>> Tobias Sing 9/24/2009 9:57 AM >>>
Tim,
if I understand correctly, you are trying to get the numerical values
of averaged cross-validation curves.
David,
Thank you for your reply. Yes, I can access the y-values slot with p...@y-values
but, note that in the cross-validation example (ROCR.xval), the plot function
averages across the list of ten vectors in the y-values slot.
I might be able to create a function to average across these ten ve
Tim,
if I understand correctly, you are trying to get the numerical values
of averaged cross-validation curves.
Unfortunately the plot function of ROCR does not return anything in
the current version (it's a good suggestion to change this).
If you want a quick fix, you could change the plot.perfo
On Sep 24, 2009, at 9:09 AM, Tim Howard wrote:
All,
I'm trying again with a slightly more generic version of my first
question. I can extract the
plotted values from hist(), boxplot(), and even plot.randomForest().
Observe:
# get some data
dat <- rnorm(100)
# grab histogram data
hdat <- h
Whoops, sorry. Here is the full set with the missing lines:
library(ROCR)
data(ROCR.xval)
pred <- prediction(ROCR.xval$predictions, ROCR.xval$labels)
perf <- performance(pred,"tpr","fpr")
RCdat <- plot(perf, avg="threshold")
RCdat
Thanks.
Tim
>>> David Winsemius 9/24/2009 9:25 AM >>>
On Sep 24,
On Sep 24, 2009, at 9:09 AM, Tim Howard wrote:
All,
I'm trying again with a slightly more generic version of my first
question. I can extract the
plotted values from hist(), boxplot(), and even plot.randomForest().
Observe:
# get some data
dat <- rnorm(100)
# grab histogram data
hdat <- h
All,
I'm trying again with a slightly more generic version of my first question. I
can extract the
plotted values from hist(), boxplot(), and even plot.randomForest(). Observe:
# get some data
dat <- rnorm(100)
# grab histogram data
hdat <- hist(dat)
hdat #provides details of the hist outp
7 matches
Mail list logo