Re: [R] SVM - calculating values problem

2019-08-28 Thread Acoss
(Acoss) Cc : R-help@r-project.org Objet : Re: [R] SVM - calculating values problem You could download the package code from CRAN and look yourself at what the predict function is doing. Sarah On Wed, Aug 28, 2019 at 6:35 AM PELE Benoît (Acoss) mailto:benoit.p...@acoss.fr>> wrote:

Re: [R] SVM - calculating values problem

2019-08-28 Thread Sarah Goslee
You could download the package code from CRAN and look yourself at what the predict function is doing. Sarah On Wed, Aug 28, 2019 at 6:35 AM PELE Benoît (Acoss) wrote: > Hello everybody, > > That is the first time that I am working on a SVM modeling and I would > like to calculate by myself

[R] SVM - calculating values problem

2019-08-28 Thread Acoss
Hello everybody, That is the first time that I am working on a SVM modeling and I would like to calculate by myself the result values from the SVM for each line of my database (named x_appr_svm). First I tested a linear SVM model using the e1071 package and to calculate the individual results

Re: [R] svm --- type~.

2018-01-10 Thread AbouEl-Makarim Aboueissa
got it thank you abou __ *AbouEl-Makarim Aboueissa, PhD* *Professor of Statistics* *Department of Mathematics and Statistics* *University of Southern Maine* On Wed, Jan 10, 2018 at 2:41 PM, AbouEl-Makarim Aboueissa < abouelmakarim1...@gmail.com> wrote: > Dear All: Just

[R] svm --- type~.

2018-01-10 Thread AbouEl-Makarim Aboueissa
Dear All: Just fixed where is the problem I am trying to use the R function "svm" with "type~." , but I got the following error message SVM.Model1 <- svm(type ~ ., data=my.data.x1x2y, *type='C-classification'*, kernel='linear',scale=FALSE) *Error in eval(predvars, data, env) : object 'type'

Re: [R] svm

2018-01-10 Thread David Winsemius
> On Jan 10, 2018, at 10:50 AM, AbouEl-Makarim Aboueissa > wrote: > > Dear All: > > > I am trying to use the R function "svm" with "type =C-classification" , > but I got the following error message > > > SVM.Model1 <- svm(type ~ ., data=my.data.x1x2y,

[R] svm

2018-01-10 Thread AbouEl-Makarim Aboueissa
Dear All: I am trying to use the R function "svm" with "type =C-classification" , but I got the following error message SVM.Model1 <- svm(type ~ ., data=my.data.x1x2y, *type='C-classification'*, kernel='linear',scale=FALSE) *Error in eval(predvars, data, env) : object 'type' not found* I

[R] SVM error

2015-06-04 Thread Pijush Das
Dear Sir, I have converted the data into numeric as the function read.excel read the data file as a character (as it was said by David Meyer, maintainer of the package e1071) and after that run the function svm. Then another error is found there. The detail description of the code and error is

Re: [R] SVM error

2015-06-04 Thread Uwe Ligges
On 04.06.2015 08:06, Pijush Das wrote: Dear Sir, I have converted the data into numeric as the function read.excel read the data file as a character (as it was said by David Meyer, maintainer of the package e1071) and after that run the function svm. Then another error is found there. The

Re: [R] SVM error.

2015-06-03 Thread Jim Lemon
Hi Pijush, As before, please keep the messages on the mailing list. In your example above you have not defined y, so the function is probably complaining about being passed a NULL for the dependent variable. I forgot to add in my previous message that I imported your data by exporting it from XLSX

[R] SVM error.

2015-06-03 Thread Pijush Das
Dear Sir, I am facing an error when I am trying to use svm and found similar kind of problem faced by other. But I unable to solve the problem. The problem is given below. rm(list=ls(all=TRUE)) CombinedGeneList - read.xlsx(file.choose(), sheet = 1, colNames = TRUE,rowNames = TRUE)

Re: [R] SVM error.

2015-06-03 Thread Jim Lemon
Hi Pijush, Without access to the data, we can only guess. However, in such cases the problem is often a factor variable where you expect a numeric one. Try this: is.factor(x) and if the answer is TRUE, you have found your problem. Jim On Wed, Jun 3, 2015 at 4:13 PM, Pijush Das

Re: [R] SVM error.

2015-06-03 Thread Jim Lemon
Hi Pijush, First, please keep the messages on the help list. As far as I can determine, the x in your code above is a matrix of character strings. When you transpose (t) the initial data frame, all of the numbers are coerced to character mode as the columns must all be of the same mode. The first

[R] SVM error

2015-06-03 Thread Pijush Das
Dear Sir, I am working with SVM recently, facing a problem which is given below. If you able to solve the problem, please send me the code. Thank you very much. library(e1071) library(openxlsx) List- read.xlsx(file.choose(), sheet = 1, colNames=TRUE,rowNames = TRUE) Data-

Re: [R] SVM error

2015-06-03 Thread Boris Steipe
svm() needs a matrix as input but read.xlsx() produces a data frame. B. On Jun 3, 2015, at 5:01 AM, Pijush Das topij...@gmail.com wrote: Dear Sir, I am working with SVM recently, facing a problem which is given below. If you able to solve the problem, please send me the code.

[R] svm plot

2015-03-13 Thread Δέσποινα Καλφακάκου
Hello, as you can imagine, I am new to R. I have a problem plotting the results of my svm classification of microarray data. So, I have a matrix of 30 rows (samples) and 306 columns (significant genes). I transform the matrix to a data frame in order to do the classification. My code is:

[R] svm implementation using RTextTools

2014-07-25 Thread Ayushi Pandey
Hello. This is the first time i am using RTextTools. I have to implement an SVM classification on a collection of text documents. I am following this tutorial. http://journal.r-project.org/archive/2013-1/collingwood-jurka-boydstun-etal.pdf I am giving you my code, stepwise. #First i read my

[R] SVM differences between R, Weka, Python

2013-08-12 Thread Valentin Kuznetsov
Hi, I'm studying SVMs and found that if I run SVM in R, Weka, Python their results are differ. So, to eliminate possible pitfalls, I decided to use standard iris dataset and wrote implementation in R, Weka, Python for the same SVM/kernel. I think the choice of kernel does not matter and only

Re: [R] SVM using R

2012-12-01 Thread Uwe Ligges
On 30.11.2012 05:08, vivek kumar singh wrote: HI All, I am very new to R tool. Can some one please suggest me some tutorial links for understanding SVM using R. After reading some textbook about the SVM, go ahead and look for ?svm in package e1071. Best, Uwe Ligges Regards, Vivek

[R] SVM using R

2012-11-29 Thread vivek kumar singh
HI All, I am very new to R tool. Can some one please suggest me some tutorial links for understanding SVM using R. Regards, Vivek __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] SVM? Comparison method wanted: 3 Groups, Microarray data

2012-11-15 Thread Peter Kupfer
Dear all, i have microarray data of 3 classes of patients. It's not a time course experiment only steady state. I used a rule-based method to classify the groups by the expression of the genes. This works out so far. Nevertheless I want to check my results with an other method. Therefore I look

[R] Svm modeling :: Error in which.max(votematrix[, x]) : subscript out of bounds

2012-10-17 Thread Vignesh Prajapati
Having a classification problem, I am using SVM for prediction in R. In dataset, there are integer as well as categorical variables. I got error while predicting with predict method. svp3c - ksvm(input_dataset3$isCRgt3~., data=input_dataset3,type=C-svc)

[R] SVM works slowly with 1M observations

2012-03-29 Thread Alekseiy Beloshitskiy
Dear All, I m just curious if this is okay that SVM takes several hours to build the model based on training data set with ~1 million observations and 7 columns (6 variables + 1 class variable). Here is my code: model-svm(result ~ ., data=trainset) where 'trainset' has 997594 obs. and 7

[R] SVM performance/optimization

2012-03-29 Thread Alekseiy Beloshitskiy
Dear All, I m trying to build SVM model with large dataset. However, svm from package e1071 works slowly (takes hours) to build model for like 1 million observations. I was thinking about CVM (Core Vector Machines:

Re: [R] SVM. How to use categorical attributes?

2012-03-28 Thread Alekseiy Beloshitskiy
://stats.stackexchange.com/questions/25355/multi-value-categorical-attributes-how-r Thank you, -Alex From: Steve Lianoglou [mailinglist.honey...@gmail.com] Sent: 27 March 2012 21:47 To: Alekseiy Beloshitskiy Cc: r-help@r-project.org Subject: Re: [R] SVM. How to use categorical

Re: [R] SVM. How to use categorical attributes?

2012-03-28 Thread Ulrich Bodenhofer
Alex, To avoid the memory issue, you can directly use a bag of words kernel (which corresponds to using the linear kernel on the sparse bag of words matrix Steve suggested). Just a little toy example how this is done for two : x1 - c(how, to, grow, tree) x2 - c(where, to, go, weekend, cinema)

Re: [R] SVM. How to use categorical attributes?

2012-03-28 Thread Ulrich Bodenhofer
Sorry, I forgot to mention the following: all I wrote is only valid as long as your number of samples is smaller than the number of different words. If the number of samples exceeds the total number of different words, you should better use the explicit matrix representation and use some kernel

Re: [R] SVM. How to use categorical attributes?

2012-03-28 Thread Alekseiy Beloshitskiy
Thank you so much, Ulrich, Will play with this. Best, -Alex From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] on behalf of Ulrich Bodenhofer [bodenho...@bioinf.jku.at] Sent: 28 March 2012 14:40 To: r-help@r-project.org Subject: Re: [R

Re: [R] SVM. How to use categorical attributes?

2012-03-28 Thread Steve Lianoglou
Hi, These suggestions still require you to explicitly compute your feature space or kernel matrix first, which might kill you memory wise. You might consider taking a look at the shogun toolbox: http://www.shogun-toolbox.org/ With some digging, I'm pretty sure you'll find a bag-of-words type

Re: [R] SVM. How to use categorical attributes?

2012-03-28 Thread Steve Lianoglou
Sorry -- I should add that I'm pointing out the potential shogun implementation because I suspect their implementation of a bag-of-words -like kernel would use the kernel trick, so you won't have to map all of your data explicitly into some huge feature space that will blow your memory away. I'm

[R] SVM. How to use categorical attributes?

2012-03-27 Thread Alekseiy Beloshitskiy
Hi All, Here is the case. I want to build classification model (SVM). Some of variables for this model are categorical attributes which represent words (usually 3-10 words - query for search in google). For example: search_id | query_words|..| result

Re: [R] SVM. How to use categorical attributes?

2012-03-27 Thread Steve Lianoglou
Hi, On Tue, Mar 27, 2012 at 6:05 AM, Alekseiy Beloshitskiy abeloshits...@velti.com wrote: Hi All, Here is the case. I want to build classification model (SVM). Some of variables for this model are categorical attributes which represent words   (usually 3-10 words - query for search in

Re: [R] svm with GRASS GIS

2012-03-05 Thread giuseppe calamita
Hi Ethienne, we (me and Gab) would like to thank you ! Finally we got what we were looking for but we did it without use the raster packagebut we are going to try also with it to see if it allow to have faster computation or data manipulation, If you're interested we can show you the code we

Re: [R] svm with GRASS GIS

2012-02-26 Thread giuseppe calamita
Dear Ethienne, thanks a lot for your help. We finally manage to perform the svm classification in this way: library(spgrass6) ; G - gmeta6() TL_training_2006_id.raw-readRAST6(TL_training_2006_id) # classes training area

Re: [R] svm with GRASS GIS

2012-02-26 Thread etiennebr
I usually use a rasterLayer object (from raster package) instead of a SpatialGridDataFrame, but you probably just have to bind it to your data : TL_training_2006_id.raw@data$prediction - pred This will create a band in which you have your predictions. raster package doesn't handle the factors, so

Re: [R] svm with GRASS GIS

2012-02-19 Thread etiennebr
Look at ?predict.svm, you'll see that you need to provide a Matrix, not a data.frame. Etienne -- View this message in context: http://r.789695.n4.nabble.com/svm-with-GRASS-GIS-tp4388006p4403005.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] svm with GRASS GIS

2012-02-18 Thread giuseppe calamita
Dear Etienne, I'm a colleauge of Gabriele and I'm more into R (but he is more into GRASS). I'll try to explain you what we didi so far 1) Our ASTER images, (B1, B2 and B3) have 8363134 pixels; we made a subset in order to have training data sets: that is, for each band (B1,B2 and B3) 916 pixels

Re: [R] svm with GRASS GIS

2012-02-16 Thread Etienne B. Racine
2012/2/15 gab gis...@libero.it Errore in scale(newdata[, object$scaled, drop = FALSE], center = object$x.scale$scaled:center, : (subscript) indice logicol troppo lungo I'm pretty sure the problem is with your data frame. Maybe if you share the result of dput(training[1:10, ]) # (make sure

Re: [R] svm with GRASS GIS

2012-02-15 Thread Etienne B. Racine
Gab, Make sure you have variables for each training. training - data.frame(Training_2006, AST_L1B_1, AST_L1B_2, AST_L1B_3N) If you can't do that, then you don't have as many training observations than you have predictive informations. Make sure to create a line for each set of predictive pixels

Re: [R] svm with GRASS GIS

2012-02-15 Thread gab
Ciao Etienne, thank you. Today I tried to understand something more. Here's what I did (The file names are a bit different): *training - data.frame(cbind(TL_training_2006_id, AST_L1B_2008_05_2009_area_giusta_1, AST_L1B_2008_05_2009_area_giusta_2, AST_L1B_2008_05_2009_area_giusta_3N))* Then ... *x

[R] svm with GRASS GIS

2012-02-14 Thread gab
Dear R Community- I am a new user of R. I am using R with GRASS GIS. I would apply svm on raster data in GRASS. Basically I have a raster with areas training and other three raster (each represents a band of ASTER satellite image). My goal is to classify, according to training areas, the 3

[R] SVM performance using laplace kernel is too slow

2011-12-07 Thread Rich Stokes
I've created an SVM in R using the kernlab package, however it's running incredibly slow (20,000 predictions takes ~45 seconds on win64 R distribution). CPU is running at 25% and RAM utilization is a mere 17% ... it's not a hardware bottleneck. Similar calculations using data mining algorithms

[R] SVM - predict function error handling

2011-12-06 Thread saveetha
All, I am beginner in R here.I am working on SVM and am getting the below errors wheneverI call the predict function.I have tried reading the manual for predict() butI  am totally stumped and not able to move further. pred - predict(model, Test[,-1])Error in scale(newdata[, object$scaled, drop

Re: [R] SVM accuracy question

2011-09-27 Thread Riccardo G-Mail
Il 27/09/11 01:58, R. Michael Weylandt ha scritto: Why exactly do you want to stabilize your results? If it's in preparation for publication/classroom demo/etc., certainly resetting the seed before each run (and hence getting the same sample() output) will make your results exactly

[R] SVM accuracy question

2011-09-26 Thread Riccardo G-Mail
Hi, I'm working with support vector machine for the classification purpose, and I have a problem about the accuracy of prediction. I divided my data set in train (1/3 of enteire data set) and test (2/3 of data set) using the sample function. Each time I perform the svm model I obtain

Re: [R] SVM accuracy question

2011-09-26 Thread R. Michael Weylandt
Why exactly do you want to stabilize your results? If it's in preparation for publication/classroom demo/etc., certainly resetting the seed before each run (and hence getting the same sample() output) will make your results exactly reproducible. However, if you are looking for a clearer picture

[R] SVM model_combination of different vairables issues

2011-09-16 Thread yadav
I am trying to build a classifier using SVM and I have 23 independent variables and 1 response. I want to check the classification ac curacies of each independent variables. I did this without any problem. Now, I want to check the all possible combinations for any two variables using following

[R] how to interpret coefficients from multiclass svm using libsvm (for multiclass R-SVM)

2011-05-30 Thread Immanuel B
Hello all, I'm working with the svm (libsvm) implementation from library(e1071). Currently I'm trying to extend recursive feature elimination (R-SMV) to work with multiclass classification. My problem is that if I run svm for a 3 class problem I get a 2-D vector back from model$coefs, can

[R] R svm prediction kernlab

2011-05-25 Thread kjkartik
am not sure if my implementation is correct or not. This was why I wanted to work with predict method in first place. Please suggest. thanks gene -- View this message in context: http://r.789695.n4.nabble.com/R-svm-prediction-kernlab-tp3551402p3551402.html Sent from the R help mailing list archive

[R] svm(e1071) and scaling of weights

2011-02-23 Thread Juergen Rose
I expected, that I will get the same prediction, if I multiply the weights for all classes with a constant factor, but I got different results. Please look for the following code. library(e1071) data(Glass, package = mlbench) index - 1:nrow(Glass) testindex - sample(index,

Re: [R] ROC from R-SVM?

2011-02-22 Thread Max Kuhn
...@gmail.com wrote: *Hi, *Does anyone know how can I show an *ROC curve for R-SVM*? I understand in R-SVM we are not optimizing over SVM cost parameter. Any example ROC for R-SVM code or guidance can be really useful. Thanks, Angel.        [[alternative HTML version deleted

Re: [R] ROC from R-SVM?

2011-02-22 Thread Angel Russo
Hi Max and Andrew, Thanks so much for your reply. Indeed I found your link last night using steps shown below. My first question is if the following two steps are right and AUC is 51% as shown below. My seond question is that currently I am using cost parameter=1 (the default in R-SVM; http

Re: [R] ROC from R-SVM?

2011-02-22 Thread Andrew Ziem
: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Angel Russo Sent: Monday, February 21, 2011 3:34 PM To: r-help@r-project.org Subject: [R] ROC from R-SVM? *Hi, *Does anyone know how can I show an *ROC curve for R-SVM*? I understand in R-SVM we are not optimizing

[R] ROC from R-SVM?

2011-02-21 Thread Angel Russo
*Hi, *Does anyone know how can I show an *ROC curve for R-SVM*? I understand in R-SVM we are not optimizing over SVM cost parameter. Any example ROC for R-SVM code or guidance can be really useful. Thanks, Angel. [[alternative HTML version deleted

[R] Error in R-SVM help:

2011-02-20 Thread Angel Russo
Greetings: I am trying to use your R code for R-SVM as follows. Why it dosen't print the LOO.error and the list of features? http://www.stanford.edu/group/wonglab/RSVMpage/R-SVM.html My training data as follows contains 142 cases and 264 features. instead I get en error as below invalid 'digits

[R] SVM Prediction and Plot

2011-02-02 Thread Brian
Hi I'm trying to predict using a model I fitted with SVM. I constructed the model (called Svm) using a training set, and now I want to use a test set (called BankTest) for prediction. The response variable is in the first column of BankTest. SvmPred = predict(Svm, BankTest[,-1],

Re: [R] SVM Prediction and Plot

2011-02-02 Thread Steve Lianoglou
Hi, On Wed, Feb 2, 2011 at 9:56 AM, Brian ctto...@hotmail.com wrote: Hi I'm trying to predict using a model I fitted with SVM. I constructed the model (called Svm) using a training set, and now I want to use a test set (called BankTest) for prediction. The response variable is in the

Re: [R] SVM Prediction and Plot

2011-02-02 Thread Brian
Thanks for the reply. When I run this: head(SvmPred) 3570 2361 5406 2041 3440 4123 NNYYYY Levels: N Y -- View this message in context: http://r.789695.n4.nabble.com/SVM-Prediction-and-Plot-tp3254421p3254570.html Sent from the R help mailing list archive at

Re: [R] SVM Prediction and Plot

2011-02-02 Thread Steve Lianoglou
Hi, On Wed, Feb 2, 2011 at 10:35 AM, Brian ctto...@hotmail.com wrote: Thanks for the reply. When I run this: head(SvmPred) 3570 2361 5406 2041 3440 4123   N    N    Y    Y    Y    Y Levels: N Y Hmmm ... I think we'll need more info. It looks like it should be working. By your output,

Re: [R] SVM Prediction and Plot

2011-02-02 Thread Brian
There are a good few blanks in some variables in the data. There were in the training set too. Is that a problem? I don't have any na.action in my svm call either. So na.omit=na.fail causes this error: Error in na.fail.default(newdata) : missing values in object I tried the matrix. SvmPred =

Re: [R] SVM Prediction and Plot

2011-02-02 Thread Steve Lianoglou
Hi, On Wed, Feb 2, 2011 at 1:40 PM, Brian ctto...@hotmail.com wrote: There are a good few blanks in some variables in the data. There were in the training set too. Is that a problem? Well, it looks like it's the root cause of what prompted you to post to R-help ... whether or not it's

[R] SVM Posterior Probabilities

2010-12-16 Thread Vijayakumar Ramachandran
I am using SVM in R via package e1071 package. Is it possible to obtain probabilities of the classification for the test set based on distances from the classification planes? This seems possible in Linear Discriminant Analysis (via lda function in MASS package) through the posterior

[R] svm online course in R

2010-10-28 Thread Changbin Du
Hi, Dear Community, Several days ago, I received one email about the online svm course in R, I try to find it. Can someone forward the information to me. Thanks! -- Sincerely, Changbin -- [[alternative HTML version deleted]] __

Re: [R] SVM classification based on pairwise distance matrix

2010-10-22 Thread Martin Tomko
Hi Steve, thanks a lot, I will haev a look at the kernel appraoch ,that looks promising. I will first have to study the theory behind before I use it, I guess. Cheers M. On 10/21/2010 5:42 PM, Steve Lianoglou wrote: Hi, On Thu, Oct 21, 2010 at 9:42 AM, Martin Tomkomartin.to...@geo.uzh.ch

[R] SVM classification based on pairwise distance matrix

2010-10-21 Thread Martin Tomko
Dear all, I am exploring the possibilities for automated classification of my data. I have successfully used KNN, but was thinking about looking at SVM (which I did nto use before). I have a pairwise distance matrix of training observations which are classified in set classes, and a distance

Re: [R] SVM classification based on pairwise distance matrix

2010-10-21 Thread Steve Lianoglou
Hi, On Thu, Oct 21, 2010 at 9:42 AM, Martin Tomko martin.to...@geo.uzh.ch wrote: Dear all, I am exploring the possibilities for automated classification of my data. I have successfully used KNN, but was thinking about looking at SVM (which I did nto use before). I have a pairwise distance

Re: [R] SVM classification based on pairwise distance matrix

2010-10-21 Thread Martin Tomko
Hi Steve, tahnks for the hints and clarifications. Unfortunately, I will not be able to use the approach you suggest, The distances I generate are distances between VERY large matrices (say 10x10 and more) each of different dimensions (not necessarily square either), and there is no

Re: [R] SVM classification based on pairwise distance matrix

2010-10-21 Thread Steve Lianoglou
Hi, On Thu, Oct 21, 2010 at 12:12 PM, Martin Tomko martin.to...@geo.uzh.ch wrote: Hi Steve, tahnks for the hints and clarifications. Unfortunately, I will not be able to use the approach you suggest, The distances I generate are distances between VERY large matrices (say 10x10 and

Re: [R] SVM functions

2010-10-06 Thread Michael Green
: [R] SVM functions Hi ! Right now I am learning to use svm functions available in R and trying to use these function with given example. I was stuck with svmlight function which is available in klaR package. Any help would be appreciated regarding this function. 1. I am unable to use

Re: [R] SVM functions

2010-10-06 Thread Neeti
hi, Thanks for this suggestion. svm function in e1071 is working fine. As I want multi classification, I would like to understand the differences in these packages and the results (based on the parameter). So that it would be easy to select the best package for my data. -- View this

Re: [R] SVM functions

2010-10-06 Thread Neeti
What are the ways by which one can validate the SVM results and its significance? Are there any papers or articles regarding my question? Please do let me know. Thank you. -- View this message in context: http://r.789695.n4.nabble.com/SVM-functions-tp2955768p2964945.html Sent from the R help

Re: [R] SVM functions

2010-10-06 Thread Mike Marchywka
...@gmail.com To: r-help@r-project.org Subject: Re: [R] SVM functions What are the ways by which one can validate the SVM results and its significance? Are there any papers or articles regarding my question? Please do let me know. for open ended research with no leads, gscholar is ok or use

[R] SVM functions

2010-10-05 Thread Neeti
Hi ! Right now I am learning to use svm functions available in R and trying to use these function with given example. I was stuck with svmlight function which is available in klaR package. Any help would be appreciated regarding this function. 1. I am unable to use svmlight( ) which is

Re: [R] SVM functions

2010-10-05 Thread Uwe Ligges
Probably you do not have svmlight installed on your machine. Uwe Ligges On 05.10.2010 12:42, Neeti wrote: Hi ! Right now I am learning to use svm functions available in R and trying to use these function with given example. I was stuck with svmlight function which is available in klaR

Re: [R] SVM functions

2010-10-05 Thread Neeti
It would be nice if you suggest me the steps to check whether svmlight is present in my system or not? -- View this message in context: http://r.789695.n4.nabble.com/SVM-functions-tp2955768p2956384.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] SVM functions

2010-10-05 Thread Uwe Ligges
On 05.10.2010 18:19, Neeti wrote: It would be nice if you suggest me the steps to check whether svmlight is present in my system or not? If you have not installed it, it is probably not present yet. How to check it: Well, that depends on your OS that is unstated so far. Asking a search

[R] SVM comparison

2010-08-29 Thread Shane O'Mahony
I'm trying to run an epsilon regression model, and am comparing the results between e1071 and kernlab. I believe that I'm calling the ksvm and svm functions the same way but I'm getting different results: library(e1071); library(kernlab) ksvm(x=1:100, y=(1:100)/5, type=eps-svr,

Re: [R] svm of e1071 package

2010-04-14 Thread Steve Lianoglou
] Sent: Wednesday, April 07, 2010 4:00 PM To: Shyamasree Saha [shs] Cc: r help Subject: Re: [R] svm of e1071 package Hi, On Tue, Apr 6, 2010 at 7:16 PM, Shyamasree Saha [shs] s...@aber.ac.uk wrote: Dear Steve, Thanks again for your help and reply. your help was very useful and gave us

Re: [R] svm of e1071 package

2010-04-14 Thread Shyamasree Saha [shs]
...@gmail.com] Sent: Wednesday, April 14, 2010 2:49 PM To: Shyamasree Saha [shs] Cc: r help Subject: Re: [R] svm of e1071 package Hi Shyama, On Tue, Apr 13, 2010 at 10:40 AM, Shyamasree Saha [shs] s...@aber.ac.uk wrote: Dear Steve, We have finally managed to run our code. Sparse matrix

Re: [R] svm of e1071 package

2010-04-13 Thread Shyamasree Saha [shs]
From: Steve Lianoglou [mailinglist.honey...@gmail.com] Sent: Wednesday, April 07, 2010 4:00 PM To: Shyamasree Saha [shs] Cc: r help Subject: Re: [R] svm of e1071 package Hi, On Tue, Apr 6, 2010 at 7:16 PM, Shyamasree Saha [shs] s...@aber.ac.uk wrote: Dear Steve, Thanks

Re: [R] svm of e1071 package

2010-04-07 Thread Steve Lianoglou
help Subject: Re: [R] svm of e1071 package Hi Shyama, Don't forget to CC the r-help list in your discussions so that there are more eyes on this problem, and others might potentially benefit from discussion. Comments in line. On Tue, Apr 6, 2010 at 4:06 PM, Shyamasree Saha [shs] s

[R] svm of e1071 package

2010-04-06 Thread Shyamasree Saha [shs]
Hello List, I am having a great trouble using svm function in e1071 package. I have 4gb of data that i want to use to train svm. I am using Amazon cloud, my Amazon Machine Image(AMI) has 34.2 GB of memory. my R process was killed several times when i tried to use 4GB of data for svm. Now I am

Re: [R] svm of e1071 package

2010-04-06 Thread Steve Lianoglou
Hi, On Tue, Apr 6, 2010 at 8:07 AM, Shyamasree Saha [shs] s...@aber.ac.uk wrote: Hello List, I am having a great trouble using svm function in e1071 package. I have 4gb of data that i want to use to train svm. I am using Amazon cloud, my Amazon Machine Image(AMI) has 34.2 GB of memory. my

Re: [R] svm of e1071 package

2010-04-06 Thread Saeed Abu Nimeh
I think the problem is that you have R configured as 32-bits. If that is the case, then you will only have access to 4 gigs of RAM (see http://www.brianmadden.com/blogs/brianmadden/archive/2004/02/19/the-4gb-windows-memory-limit-what-does-it-really-mean.aspx). Try booting up an ubuntu instance in

Re: [R] svm of e1071 package

2010-04-06 Thread Steve Lianoglou
Hi Shyama, Don't forget to CC the r-help list in your discussions so that there are more eyes on this problem, and others might potentially benefit from discussion. Comments in line. On Tue, Apr 6, 2010 at 4:06 PM, Shyamasree Saha [shs] s...@aber.ac.uk wrote: Dear Steve, Thanks a lot for

Re: [R] svm of e1071 package

2010-04-06 Thread Shyamasree Saha [shs]
06, 2010 9:40 PM To: Shyamasree Saha [shs] Cc: r help Subject: Re: [R] svm of e1071 package Hi Shyama, Don't forget to CC the r-help list in your discussions so that there are more eyes on this problem, and others might potentially benefit from discussion. Comments in line. On Tue, Apr 6, 2010

Re: [R] svm

2010-03-04 Thread Amy Hessen
Hi Steve, Could you please tell me what I should change in this equation: “accuracy - sum(mytest == mytestdata[,1]) / length(mytest)”In order to compute the accuracy of SVM when using cross validation?Cheers,Amy

Re: [R] svm

2010-02-23 Thread Amy Hessen
it with the attached dataset? I tried it with different datasets and the problem remains. Cheers, Amy Date: Mon, 22 Feb 2010 10:02:31 -0500 Subject: Re: [R] svm From: mailinglist.honey...@gmail.com To: amy_4_5...@hotmail.com CC: r-help@r-project.org Hi Amy, On Sat, Feb 20, 2010 at 9:29 PM

Re: [R] svm

2010-02-22 Thread Steve Lianoglou
Hi Amy, On Sat, Feb 20, 2010 at 9:29 PM, Amy Hessen amy_4_5...@hotmail.com wrote: Hi , Could you please help me in this question:? After trying this code: library(e1071)  mydata - as.matrix(read.delim(iris.txt))  train.x - mydata[,-1]  train.y - mydata[,1]  mymodel - svm(train.x,

Re: [R] svm

2010-02-20 Thread Amy Hessen
= TRUE) : 'x' must be numeric I put the class label in the first column. Cheers, Amy Date: Wed, 3 Feb 2010 10:59:27 -0500 Subject: Re: [R] svm From: mailinglist.honey...@gmail.com To: amy_4_5...@hotmail.com CC: r-help@r-project.org HI Amy, On Wed, Feb 3, 2010 at 1:56 AM, Amy Hessen

Re: [R] svm and RMSE

2010-02-19 Thread Uwe Ligges
. If you want to get the exactly same results, use a seed for the random number generator such as: set.seed(123) mymodel- svm(train.x, train.y, cross=10) summary(mymodel) Uwe Ligges Cheers, Amy Date: Tue, 16 Feb 2010 10:33:19 -0500 Subject: Re: [R] svm and RMSE From: mailinglist.honey

[R] svm regression

2010-02-18 Thread madhu sankar
Hi, I am trying to use svm for regression data. this is how my data looks like: dataTrain x y z 1 4 6 2 5 4 3 7 5 classTrain a 2 3 4 dataTest x y z 1 7 2 2 8 3 classTest a 3 4 5 building the model model-svm(dataTrain,classTrain,type=nu-regression) pred - predict(model,

[R] svm regression

2010-02-18 Thread madhu sankar
Hi, I am having trouble with svm regression.it is not giving the right results. example model - svm(dataTrain,classTrain,type=eps-regression) predict(model, dataTest) 36 37 38 39 40 41 42 -13.838257 -1.475401 10.502739 -3.047656 -8.713697

Re: [R] svm regression

2010-02-18 Thread Uwe Ligges
On 18.02.2010 17:54, madhu sankar wrote: Hi, I am trying to use svm for regression data. this is how my data looks like: dataTrain x y z 1 4 6 2 5 4 3 7 5 classTrain a 2 3 4 dataTest x y z 1 7 2 2 8 3 classTest a 3 4 5 building the model

Re: [R] svm regression

2010-02-18 Thread Uwe Ligges
On 18.02.2010 19:43, madhu sankar wrote: Hi, I am having trouble with svm regression.it is not giving the right results. example model- svm(dataTrain,classTrain,type=eps-regression) predict(model, dataTest) 36 37 38 39 40 41 42 -13.838257

Re: [R] svm and RMSE

2010-02-18 Thread Amy Hessen
- readingmydata[,1] mymodel - svm(train.x, train.y, cross=10) summary(mymodel) can you please tell me how I can fix that error? Cheers, Amy Date: Tue, 16 Feb 2010 10:33:19 -0500 Subject: Re: [R] svm and RMSE From: mailinglist.honey...@gmail.com To: amy_4_5...@hotmail.com CC: r-help@r

Re: [R] svm and RMSE

2010-02-16 Thread Steve Lianoglou
Hi, On Fri, Feb 12, 2010 at 3:00 PM, Amy Hessen amy_4_5...@hotmail.com wrote: Hi, Every time I run a svm regression program, I got different RMSE value. Could you please tell me what the reason for that? Sorry, your question is a bit vague. Can you provide an example/code that shows this

[R] SVM e1071

2010-02-16 Thread Anderson de Rezende Rocha
Dear R-users, Does anyone know how to get margins' information using SVM under package e1071? I have a two class classification problem and I'd like to have, for each input example, the distance of this example to the margin just like it's possible to obtain using C-based SVM-light, for

[R] svm and RMSE

2010-02-12 Thread Amy Hessen
Hi, Every time I run a svm regression program, I got different RMSE value. Could you please tell me what the reason for that? Cheers, Amy _ If it exists, you'll find it on SEEK.

Re: [R] svm

2010-02-04 Thread Amy Hessen
-project.org Subject: Re: [R] svm On Thu, 4 Feb 2010, Amy Hessen wrote: Hi Steve, Thank you very much for your reply. Could you please guide me to any helpful reference to learn about the other non-linear regression algorithms available in R language and about how I use

  1   2   >