search for: timlee126

Displaying 6 results from an estimated 6 matches for "timlee126".

2009 Jul 12
1
Splitting dataset for Tuning Parameter with Cross Validation
Hi, My question might be a little general. I have a number of values to select for the complexity parameters in some classifier, e.g. the C and gamma in SVM with RBF kernel. The selection is based on which values give the smallest cross validation error. I wonder if the randomized splitting of the available dataset into folds is done only once for all those choices for the parameter values, or
2009 May 08
2
Plotting questions
Hi, I am new to R. I have two questions about plotting in R: 1. How to plot several lines in a figure? Suppose I have several sets of points (xi,yi), where xi and yi are equal-length vector. plot(x1,y1) will give a line connecting these points. Another plot(x2,y2) will erase what plot before and plot the new line. Can I have these lines all drawn in the same figure? 2. How to open another figure
2009 May 14
2
specify the number of decimal numbers
Hi, I was wondering how to specify the number of decimal numbers in my computation using R? I have too many decimal numbers for my result, when I convert them to string with as.character, the string will be too long. Thanks and regards! -- View this message in context: http://www.nabble.com/specify-the-number-of-decimal-numbers-tp23538852p23538852.html Sent from the R help mailing list archive at
2009 Sep 04
1
How to call R routines in C++`
Hi, I have some results generated in my C++ program. I 'd like to call some R functions that can test if two sample sets are from different distribution, like Kolmogorov-Smirnov and other more sophisticated Tests. I also like to draw the histograms of the two sample sets in the same plot using R. As a newbie to R, I greatly appreciate any suggestions on how to call R in C/C++ and
2009 May 08
1
Get (feature, threshold) from Output of rpart() for Stump Tree
Hi, I have a question regarding how to get some partial information from the output of rpart, which could be used as the first argument to predict. For example, in my code, I try to learn a stump tree (decision tree of depth 2):    "fit        <- rpart(y~bx, weights = w/mean(w), control = cntrl)     print(fit)     btest[1,]  <- predict(fit, newdata = data.frame(bx)) " I found
2009 May 12
1
ROCR: auc and logarithm plot
Hi, I am quite new to R and 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(