search for: svmmodel

Displaying 4 results from an estimated 4 matches for "svmmodel".

Did you mean: svm_model
2013 Jun 17
2
SVMREF infinte number of genes
...r patient. there are two types of cancer people representedas factor y. here is the code: library(e1071) #load database db <- read.csv(file="databases\\colon-cancer\\colon-cancer.csv",head=FALSE,sep=",") x = as.matrix(db[,1:(ncol(db)-1)]) y = as.factor(db[,ncol(db)]) svmModel = svm(x, y, cost = 10, cachesize=500, scale=F, type="C-classification", kernel="linear" ) Now how to plot this infinte number of genes after classification using SVM??? thanks [[alternative HTML version deleted]]
2013 Feb 07
1
Saving model and other objects from caret
Say I train a model in caret, e.g.: RFmodel <- train(X,Y,method='rf',trControl=myCtrl,tuneLength=1) How can I save this to disk and load it later in R? How about an object of the class "resamples"? resamps <- resamples( list( RF = RFmodel, SVM = SVMmodel, KNN = KNNmodel, NN = NNmodel )) Thanks, James [[alternative HTML version deleted]]
2013 Feb 10
1
Training with very few positives
...DataPartition(Y, p = 9/10, times = 3, list = TRUE) myCtrl <- trainControl(method = "boot", index = tmp, timingSamps = 2, classProbs = TRUE, summaryFunction = twoClassSummary) RFmodel <- train(X,Y,method='rf',trControl=myCtrl,tuneLength=1, metric="ROC") SVMmodel <- train(X,Y,method='svmRadial',trControl=myCtrl,tuneLength=3, metric="ROC") KNNmodel <- train(X,Y,method='knn',trControl=myCtrl,tuneLength=10, metric="ROC") NNmodel <- train(X,Y,method='nnet',trControl=myCtrl,tuneLength=3, trace = FALSE,...
2002 Aug 20
0
Re: SVM questions
> > So i guess from your prev. email the svmModel$coefs correspond to the > "Alpha" . yes (times the sign of y!). > > Why do I see three columns in the coefs?( Is this the number of classes -1 > = Numbe of hyperplanes) yes, but in a packed format which is not trivial. I attach some explanation I sent to R-help some time...