Displaying 20 results from an estimated 2000 matches similar to: "Help with plot.svm from e1071"
2006 Jan 19
0
Using svm.plot with mlbench.spirals.
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], y=raw$x[,2])
> m <- svm(class~., data=spiral)
> plot(m,
2006 Jan 27
1
Classifying Intertwined Spirals
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)
library(e1071)
raw <- mlbench.spirals(194, 2)
spiral <-
2008 Jan 04
3
Plot error
Hi all,
I'm trying to plot an svm model and I'm the following error:
> plot(model, data= dados[,-1], formula=formula(dados[,2]~dados[,3]),svSymbol = 1, dataSymbol = 2, symbolPalette = rainbow(4),color.palette = terrain.colors)
Error in terms.default(x) : no terms component
Anyone knows how to solve this???
Best regards,
Pedro Marques
2008 Jan 02
1
Plot.svm error
Hi all,
Sorry to be bothering again with probably an easy error to fix, but I've been trying to solve the problem and haven't been able yet to do it. So I'm doing this:
> dados<-read.table("b.txt",sep="",nrows=30000)
>
2020 Jun 21
1
Possible bug in heatmap()?
Dear All,
There might be a bug in heatmap():
x <- matrix(rnorm(10*5), 10, 5)
heatmap(x, labCol=1:5)
Error in axis(1, 1L:nc, labels = labCol, las = 2, line = -0.5, tick = 0, :
'at' and 'labels' lengths differ, 5 != 10
Works fine under 4.0.1. Looking at the code from 4.0.1 vs. Rdevel, esp. this part sticks out:
labRow <- labRow[rowInd] %||% rownames(x) %||%
2006 Feb 11
2
heatmap.2 in gplots (PR#8587)
Full_Name: Shane Neph
Version: 2.2.1
OS: mac os x
Submission from: (NULL) (71.113.43.247)
While I found the names of the package authors and maintainer, I was
unsuccessful in finding any contact information.
The preliminary documentation for heatmap.2 is inconsistent in at least a couple
of places when discussing the suppression of one or more dendrograms (and
column/row ordering in general).
2004 Jun 21
2
visualizing a list of probabilities
Hi,
I'm using nnet to work on a 2 class classification problem. The result
of my code is data.frame of true class, predicted class and associated
probability.
One way of summarizing the data is by a confusion matrix. However are
there any graphical ways I could represent the data - specifically, I'd
like to show the probabilities associated with each member of my
prediction set?
(I
2009 Apr 01
0
smv() in "e1071" and the BreastCancer data from "mlbench"
R-help,
I am trying to perform a basic anlaysis of the BreastCancer data from
"mlbench" using the svm() function in "e1071". I use the following code
library("e1071")
library("mlbench")
data(BreastCancer)
BC <- subset(BreastCancer, select=-Id)
pairs(BC)
model <- svm(Class ~ ., data=BC, cross=10)
## plot(model, BC, )
tobj <- tune.svm(Class ~ .,
2012 Jul 05
1
Different level set when predicting with e1071's Naive Bayes classifier
Hi!
I'm using the Naive Bayes classifier provided by the e1071 package (
http://cran.r-project.org/web/packages/e1071) and I've noticed that the
predict function has a different behavior when the level set of the columns
used for prediction is different from the ones used for fitting. From
inspecting the predict.naiveBayes I came to the conclusion that this is due
to the conversion of
2008 Aug 06
1
error in installing R packages
Hello,
I am trying to install R packages under linux, some of the packages can
not be installed and I got the following error, could anybody give me
suggestion on where the problem is and how to fix it? Thanks-e
> .libPaths()
[1] "/usr/lib64/R/library"
[2] "/usr/share/R/library"
[3]
2011 Feb 08
1
Naive Bayes Issue - Can't Predict - Error is "Error in log(sapply(attribs...)
Hey guys,
I can't get my Naive Bayes model to predict. Forgive me if its simple...
I've tried about everything and can't get it to work. Reproduceable code
below.
Thank you,
Mike
--
Michael Schumacher
Manager Data & Analytics - ValueClick
mike.schumacher@gmail.com
*
Functional Example Code from UCLA:
2008 Jan 03
0
Svm formula
Hi all,
I don't know how to choose the formula to use when plotting an svm model, I think I'm using the wrong one and so that is why I'm having trouble. I should be very grateful if someone could help me on this..
> dados<-read.table("b.txt",sep="",nrows=30000)
>
2011 Feb 23
0
svm(e1071) and scaling of weights
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, trunc(length(index)/5))
> testset <- Glass[testindex, ]
> trainset <-
2010 Aug 15
2
Is the error threshold for a degraded device configurable?
I look after an x4500 for a client and wee keep getting drives marked as
degraded with just over 20 checksum errors.
Most of these errors appear to be driver or hardware related and thier
frequency increases during a resilver, which can lead to a death
spiral. The increase in errors within a vdev during a resilver (I
recently had three drives in an 8 drive raidz vdev "degraded")
2005 May 29
1
Disabling logging for web service calls?
I''m using ActionWebService to allow users to upload files to my rails
app. I do this by encoding to Base64. The problem with this is that
rails logs the file data so my log file size spirals out of control. Is
there any way to selectively disable logging when the web api is
invoked? ActiveRecord::Base.silence doesn''t seem too useful here as it''s
only called AFTER
2001 Oct 11
2
Where's MVA?
Hi All:
Package TSERIES is stated to depend on MVA. However, there is no MVA package to be found under the list of package sources.
Best wishes,
ANDREW
tseries: Package for time series analysis
Package for time series analysis with emphasis on non-linear and non-stationary modelling Version: 0.7-6
Depends: ts, mva, quadprog
Date: 2001-08-27
Author: Compiled by Adrian
2006 Jun 27
1
[OT]Development Patterns
Hello all,
I''m curious as to what development models other people/teams follow when
creating web applications.
My company has been using the waterfall model(
http://en.wikipedia.org/wiki/Waterfall_process) for quite some time now.
I''m not completely conviced that it is the right process for web
development. I''ve been doing web development for about 6 years now using
2011 Sep 23
1
Wine speed
I am used to windows as school has every pc on windows, and we also used to have windows. i really enjoyed a game called spiral knights and on windows it was quite fast, but with wine it took ages to load
also another thing, on wine i downlaoded steam and that logs me in but if i try to go to the store on it, it closes
can any one help me on either of these problems
Jasper
2010 Feb 20
1
how to create a SEXP which could be accessed in embedded R
Hi all,
I am not familiar with writing R extensions. In a C program, I want to create a SEXP and access it in embedded R. How to let the embedded engine know there's a new vector? For example, after creating a SEXP, parsing 'ls()' in embedded R and then evaluating, STRSXP returned will contain the name of the SEXP. Any help would be appreciated.
Regards,
Spiral
[[alternative HTML
2007 Feb 16
6
some fun functionality for all your specs
I''ve found these two snippets of code useful and would love some feedback.
first, .should_have_valid_associations
usage:
context "A new Product" do
specify "should have valid associations" do
@product.should_have_valid_associations
end
end
code: (thanks to Wilson/Defiler for converting to rspec)
module Spec
module Expectations
module Should