Changing SVM-Kernal in geNetClassifier function
2
0
Entering edit mode
Seymoo • 0
@seymoo-12522
Last seen 3 months ago
Oslo

I am using `geNetClassifier` function of same name package to build a classifier for gene-expression data.

`@classifier` slot of returned function provide information on call as below

`Call:

svm.default(x = t(esetFilteredDataFrame[buildGenesVector, trainSamples, drop = FALSE]), y = sampleLabels[trainSamples], kernel = "linear", probability = TRUE, C = 1)`

`

Parameters:
   SVM-Type:  C-classification 
 SVM-Kernel:  linear 
       cost:  1 
      gamma:  0.002739726

`

I am wondering if it possible somewhat to change SVM-kernal parameter in the `geNetClassifier ` ?

Thanks in advance

genet genetclassifier • 1.7k views
ADD COMMENT
0
Entering edit mode
Dario Strbenac ★ 1.5k
@dario-strbenac-5916
Last seen 5 hours ago
Australia

No. It's also bad design that the developers implemented the cost value a constant. The optimal value would differ based on the input dataset. The algorithm basically does feature selection and inputs the chosen genes into to an SVM classifier. You can implement a similar analysis with ClassifyR or caret.

ADD COMMENT
0
Entering edit mode

Hi Dario,
Thanks a lot for your answer and the the great tip about the `caret` package.

The main reason I am using this package is that it outpust a list of discriminant genes for each of putative sub-classes in my data. Is that an option in the packages you mentioned above?


It's very tempting with all those method for train models aside from all SVM based methods! just for my info, if it has happened to you to try some of those methods, in your experience which one is a better alternative for class discovery in gene expression data? I know SVM, and RandomForest are popular approaches based on literature but I am not sure that the only plausible options one can use

Best,

Hossein

ADD REPLY
0
Entering edit mode

No, the packages I mentioned don't output genes selected based on a multi-class criteria. You would need to write the function yourself. Of course, there are many classifiers you can use and different methods will give better classification performance for different datasets.
 

ADD REPLY
0
Entering edit mode
Seymoo • 0
@seymoo-12522
Last seen 3 months ago
Oslo

@saibar

Hi Sara,

Thanks for making this great package. I am wondering if you add cost argument in the formula to be set by users or if you could explain how to modify it the way it is right now ? I am using Caret package to find optimal cost to be used in the function and I would like to adjust cost parameter.

ADD COMMENT

Login before adding your answer.

Traffic: 793 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6