search for: mlbench

Displaying 20 results from an estimated 69 matches for "mlbench".

Did you mean: lmbench
2009 Jul 06
1
mlbench dataset question
Dear R-users, Recently, I am facing some problems when converting mlbench data into matrix format. library(mlbench) data(BostonHousing) X<- BostonHousing[,1:13] y<-BostonHousing[,14] I want to convert X and y into matrix form. I am getting these obvious errors... > t(X)%*%y Error in t(X) %*% y : requires numeric/complex matrix/vector arguments > t(as.matri...
1997 Jun 09
1
R-beta: mlbench-0.1 --- machine learning benchmark problems
I've made a package from some benchmark datasets for use with R and uploaded it to CRAN. Here's the Index entry: mlbench-0.1.tar.gz: A collection of artificial and real-world machine learning benchmark problems, including, e.g., the boston housing data from the UCI repository. Written/packaged by Fritz Leisch <Friedrich.Leisch at ci.tuwien.ac.at> Original data sets from various sources. [1997/06/09] Th...
1997 Jun 09
1
R-beta: mlbench-0.1 --- machine learning benchmark problems
I've made a package from some benchmark datasets for use with R and uploaded it to CRAN. Here's the Index entry: mlbench-0.1.tar.gz: A collection of artificial and real-world machine learning benchmark problems, including, e.g., the boston housing data from the UCI repository. Written/packaged by Fritz Leisch <Friedrich.Leisch at ci.tuwien.ac.at> Original data sets from various sources. [1997/06/09] Th...
1997 Jun 09
1
R-beta: mlbench-0.1 --- machine learning benchmark problems
I've made a package from some benchmark datasets for use with R and uploaded it to CRAN. Here's the Index entry: mlbench-0.1.tar.gz: A collection of artificial and real-world machine learning benchmark problems, including, e.g., the boston housing data from the UCI repository. Written/packaged by Fritz Leisch <Friedrich.Leisch at ci.tuwien.ac.at> Original data sets from various sources. [1997/06/09] Th...
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(Clas...
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, spiral) Error in -x$index : invalid argument to unary operator So we d...
1999 Aug 24
1
package mlbench updated
Hi, Evgenia and I have copied an updated version of the mlbench package to CRAN which contains several new data sets. We have also changed some of the variable names to avoid name conflicts. Best, -- ------------------------------------------------------------------- Friedrich Leisch Institut f?r Statistik Tel: (...
1999 Aug 24
1
package mlbench updated
Hi, Evgenia and I have copied an updated version of the mlbench package to CRAN which contains several new data sets. We have also changed some of the variable names to avoid name conflicts. Best, -- ------------------------------------------------------------------- Friedrich Leisch Institut f?r Statistik Tel: (...
2006 Sep 11
2
problems in installing packages with R version 2.4.0 alpha (2006-09-05 r39134)
...) --- Please select a CRAN mirror for use in this session --- dependency ''fCalendar'' is not available dependency ''SparseM'' is not available I am not sure which other packages depend on these. 2. Of the others, several didn't install cleanly package 'mlbench' successfully unpacked and MD5 sums checked Warning: unable to move temporary installation 'C:\Program Files\R\R- 2.4.0alpha\library\file41bb5af1\mlbench' to 'C:\Program Files\R\R-2.4.0alpha\library\mlbench' package 'tseries' successfully unpacked and MD5 sums checked Wa...
2010 Jun 01
1
BreastCancer Dataset for Classification in kknn
Dear All, I'm getting a error while trying to apply the BreastCancer dataset (package=mlbench) to kknn (package=kknn) that I don't understand as I'm new to R. The codes are as follow: rm = (list = ls()) library(mlbench) data(BreastCancer) library(kknn) BCancer = na.omit(BreastCancer) d = dim(BCancer)[1] i1 = seq(1, d, 2) i2 = seq(2, d, 2) t1 = BCancer[i1, ] t2 = BCan...
2006 Jan 18
2
Help with plot.svm from e1071
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, spiral) Error in -x$index : invalid argument to unary operator So we d...
2011 Feb 08
1
Naive Bayes Issue - Can't Predict - Error is "Error in log(sapply(attribs...)
...low. Thank you, Mike -- Michael Schumacher Manager Data & Analytics - ValueClick mike.schumacher@gmail.com * Functional Example Code from UCLA: http://www.stat.ucl.ac.be/ISdidactique/Rhelp/library/e1071/html/predict.naiveBayes.html * install.packages('e1071') install.packages('mlbench') library(e1071) library(mlbench) data(HouseVotes84) model <- naiveBayes(Class ~ ., data = HouseVotes84) predict(model, HouseVotes84[1:10,-1]) *My Code That Errors:* resp<-c(0,0,0,0,0,0,0,0,0,1,1,1,1,1,1) var <-c('y','n','y','y','y','n'...
2008 Aug 06
1
error in installing R packages
...[2] "/usr/share/R/library" [3] "/home/ewinter/R/x86_64-redhat-linux-gnu-library/2.7" > install.packages("e1071", lib="/usr/share/R/library", dependencies=T) also installing the dependencies ?mlbench?, ?randomForest? trying URL 'http://cran.stat.ucla.edu/src/contrib/mlbench_1.1-4.tar.gz' Content type 'application/x-tar' length 1192839 bytes (1.1 Mb) opened URL ================================================== downloaded 1.1 Mb trying URL 'http://cran.stat.ucla.e...
2010 Jul 29
1
Crash report: projection pursuit & predict
...y for sure. I'm using 2.11.1 under the 32-bit Windows XP. I've also tested the codes under a 64-bit Ubuntu and the same problem occurred. By the way, right before Rgui shuts down, the pop-up window suggests it's a runtime error in C++. Here are the codes that cause the crash, library(mlbench) data(BostonHousing2) BH = BostonHousing2[,-c(1:5)] dat1 = BH[1:200,] dat2 = BH[201:400,] mod = ppr(log(cmedv)~., data=dat1, optlevel=0, nterms=2, max.terms=5) pred = predict(mod, newdata=dat2) Thks. HT > sessionInfo() R version 2.11.1 (2010-05-31) i386-pc-mingw32 locale: [1] LC_COLLATE=Engl...
2009 May 12
1
questions on rpart (tree changes when rearrange the order of covariates?!)
Greetings, I am using rpart for classification with "class" method. The test data is the Indian diabetes data from package mlbench. I fitted a classification tree firstly using the original data, and then exchanged the order of Body mass and Plasma glucose which are the strongest/important variables in the growing phase. The second tree is a little different from the first one. The misclassification tables are different too....
2006 Jan 27
1
Classifying Intertwined Spirals
...9;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 <- data.frame(class=as.factor(raw$classes), xx=raw$x[,1], y=raw$x[,2]) m <- svm(class~., data=spiral) plot(m, spiral) You'll note that I have two spirals with 97 points each and I'm using a kernel with a radial basis: exp(-gamm...
2006 Jan 11
1
Strange behaviour of load
Dear All, simetimes when I load an Rdata I get this message ####### Code: load('bladder1.RData') Carico il pacchetto richiesto: rpart ( Bad traslastion: Load required package-...) Carico il pacchetto richiesto: MASS Carico il pacchetto richiesto: mlbench Carico il pacchetto richiesto: survival Carico il pacchetto richiesto: splines Carico il pacchetto richiesto: 'survival' The following object(s) are masked from package:Hmisc : untangle.specials Carico il pacchetto richiesto: class Carico il pacchetto richiesto: nnet...
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
2011 Nov 07
2
help with programming
...the program instructed by follows. Thank u! Apply the methods introduced in Sections 4.2.1 and 4.2.2, say the > rank-based variable selection and BIC criterions, to the Boston housing > data. >  The Boston housing data contains 506 observations, and is publicly available in the R package mlbench (dataset “BostonHousing”).  The response variable Y is the median value of owner-occupied homes (MEDV) in each of the 506 census tracts in the Boston Standard Metropolitan Statistical Areas, and there are thirteen predictor variables.  We are interested in the relationship between MEDV and the ot...
2003 Apr 02
4
randomForests predict problem
...rediction of new values. The random forest computation is fine but each time I try to predict values with the newly created object, I get an error message. I thought I was because NA values in the dataframe, but I cleaned them and still got the same error. What am I doing wrong ? > library(mlbench) > library(randomForest) > data(Soybean) > test <- sample(1:683, 150, replace=F) > sb.rf <- randomForest(Class~., data=Soybean[-test,]) > sb.rf.pred <- predict(sb.rf, Soybean[test,]) Error in matrix(t1$countts, nr = nclass, nc = ntest) : No data to replace in m...