[R] Classifying Intertwined Spirals

2006-01-27 Thread Joshua Gilbert
I'm using an SVM as I've seen a paper that reported extremely good results. I'm not having such luck. I'm also interested in ideas for other approaches to the problem that can also be applied to general problems (no assuming that we're looking for spirals). Here is my code: library(mlbench)

Re: [R] Classifying Intertwined Spirals

2006-01-27 Thread Joshua Gilbert
tuning at all, do you? Try: m2 - best.svm(class~., data=spiral, gamma=2^(-3:3), cost=2^(0:5)) plot(m2, spiral) Andy From: Joshua Gilbert I'm using an SVM as I've seen a paper that reported extremely good results. I'm not having such luck. I'm also interested in ideas for other approaches

[R] Using svm.plot with mlbench.spirals.

2006-01-19 Thread Joshua Gilbert
Hi. I'm trying to plot a pair of intertwined spirals and an svm that separates them. I'm having some trouble. Here's what I tried. library(mlbench) library(e1071) Loading required package: class raw - mlbench.spirals(200,2) spiral - data.frame(class=as.factor(raw$classes), x=raw$x[,1],

[R] Help with plot.svm from e1071

2006-01-18 Thread Joshua Gilbert
Hi. I'm trying to plot a pair of intertwined spirals and an svm that separates them. I'm having some trouble. Here's what I tried. library(mlbench) library(e1071) Loading required package: class raw - mlbench.spirals(200,2) spiral - data.frame(class=as.factor(raw$classes), x=raw$x[,1],

[R] Help with plot.svm from e1071

2006-01-18 Thread Joshua Gilbert
Hi. I'm trying to plot a pair of intertwined spirals and an svm that separates them. I'm having some trouble. Here's what I tried. library(mlbench) library(e1071) Loading required package: class raw - mlbench.spirals(200,2) spiral - data.frame(class=as.factor(raw$classes), x=raw$x[,1],

Re: [R] Computing generalized eigenvalues

2005-06-20 Thread Joshua Gilbert
On 6/17/05, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 16 Jun 2005, Joshua Gilbert wrote: I need to compute generalized eigenvalues. The eigen function in base doesn't do it and I can't find a package that does. They are very rarely used in statistics, so this is not surprising

[R] Computing generalized eigenvalues

2005-06-16 Thread Joshua Gilbert
from R and use those routines directly? Thank you, Joshua Gilbert. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Error with function lda in package MASS (dimnames not equal?)

2005-06-11 Thread Joshua Gilbert
that and it is rather unlikely unless you failed to inspect your data in any way. On Fri, 10 Jun 2005, Joshua Gilbert wrote: This question appears to have been asked previously, but not answered. the last response I can find to this previous thread is here: http://tolstoy.newcastle.edu.au/R/help/04/07/0126

Re: [R] Error with function lda in package MASS (dimnames not equal?)

2005-06-11 Thread Joshua Gilbert
it to the package maintainer (as the posting guide asks). On Sat, 11 Jun 2005, Joshua Gilbert wrote: This is true, they are equal. I hadn't noticed that. Thank you. Now, if lda fails on this given input (equal means), shouldn't we catch it and give a slightly better error message? I've

[R] Error with function lda in package MASS (dimnames not equal?)

2005-06-10 Thread Joshua Gilbert
This question appears to have been asked previously, but not answered. the last response I can find to this previous thread is here: http://tolstoy.newcastle.edu.au/R/help/04/07/0126.html. The asnwer was to provide debugging info, not an answer. So the problem is that I'm trying to use lda on my