Re: [R] Recursive Feature Elimination with SVM

2019-01-02 Thread Bert Gunter
Note: **NOT** reproducible (only you have "data.csv"). Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Jan 1, 2019 at 11:14 PM Priyanka Purkayastha < ppurk

Re: [R] Recursive Feature Elimination with SVM

2019-01-01 Thread Priyanka Purkayastha
This is the code I tried, library(e1071) library(caret) library(ROCR) data <- read.csv("data.csv", header = TRUE) set.seed(998) inTraining <- createDataPartition(data$Class, p = .70, list = FALSE) training <- data[ inTraining,] testing <- data[-inTraining,] while(length(data)>0){ ## Building

Re: [R] Recursive Feature Elimination with SVM

2019-01-01 Thread David Winsemius
On 1/1/19 5:31 PM, Priyanka Purkayastha wrote: Thankyou David.. I tried the same, I gave x as the data matrix and y as the class label. But it returned an empty "featureRankedList". I get no output when I try the code. If you want people to spend time on this you should post a reproducible

Re: [R] Recursive Feature Elimination with SVM

2019-01-01 Thread Priyanka Purkayastha
Thankyou David.. I tried the same, I gave x as the data matrix and y as the class label. But it returned an empty "featureRankedList". I get no output when I try the code. On Tue, 1 Jan 2019 at 11:42 PM, David Winsemius wrote: > > On 1/1/19 4:40 AM, Priyanka Purkayastha wrote: > > I have a datas

Re: [R] Recursive Feature Elimination with SVM

2019-01-01 Thread David Winsemius
On 1/1/19 4:40 AM, Priyanka Purkayastha wrote: I have a dataset (data) with 700 rows and 7000 columns. I am trying to do recursive feature selection with the SVM model. A quick google search helped me get a code for a recursive search with SVM. However, I am unable to understand the first part

[R] Recursive Feature Elimination with SVM

2019-01-01 Thread Priyanka Purkayastha
I have a dataset (data) with 700 rows and 7000 columns. I am trying to do recursive feature selection with the SVM model. A quick google search helped me get a code for a recursive search with SVM. However, I am unable to understand the first part of the code, How do I introduce my dataset in the c