[R] Asymmetric Cost assignment for SVM | Help

2015-02-02 Thread Bharat Bargujar
Hi Friends, I want to assign asymmetric cost values at the time training. For example : For false negative cost should be 10 and for For false positive it should be 1. Can some help me with this. Code: svmFit <- train(Y ~ ., data = train, method = "svmRadial",

Re: [R] how to use the rpart model to predict new data frame?

2014-11-11 Thread Bharat Bargujar
HI, Try this: results <- predict(rp,b,type = "vector") Regards, Bharat On 12 November 2014 09:17, PO SU wrote: > > Dear expeRts, > Now i have a train dataset a and test dataset b , i using the > following codes: > rp<-rpart(y~.,data=a,method="class") > plot(rp) > text(rp) > but how