[R] ensemble methods

2013-11-11 Thread Iut Tri Utami
Dear Mr/Mrs I am Iut, student of graduate student in Bogor Agriculture Institur I read a book on ensemble methods in data mining by Seni and Elder and find R code about bagging. I am confused how to call these functions and and how to agregate it with the majority votes? I think there is missing c

Re: [R] need an assistance

2013-06-23 Thread Iut Tri Utami
err.mean[i] <- mean(abs(test.data$y - round(apply(pred,2,mean + err.vote[i] <- mean(abs(test.data$y - round(apply(ifelse(pred>.5,1,0),2,mean)))) + } Error in apply(pred, 2, mean) : dim(X) must have a positive length I'd appreciate any advice about the algorithm. Thanks for any

[R] Fwd: need an assistance

2013-05-13 Thread Iut Tri Utami
Hi, i am tryng to run Bagging SVM but I have a problem. I do Bagging SVM based on algoritm bagging Trees by Breiman. I get the following error and I think I am wrong in calculating err.mean and err.vote. I also have difficulty in making the plot. > library(e1071) > gendata <- function(N=30,p=5,r=.

[R] need an assistance

2013-05-10 Thread Iut Tri Utami
Hi, i am tryng to run Bagging SVM but I have a problem. I do Bagging SVM based on algoritm bagging Trees by Breiman. I get the following error and I think I am wrong in calculating err.mean and err.vote. I also have difficulty in making the plot. > library(e1071) > gendata <- function(N=30,p=5,r=.

[R] example

2013-04-26 Thread Iut Tri Utami
Dear Sir, My name is Iut Tri Utami. i am beginning user. I have a problem about generate data in R. It consists of one disk generated by a Gaussian N(0, 0.167) and one ring generated by a Gaussian N(R, 0.1). The mean R was generated from its polar coordinates. The angle was drawn from a uniform