search for: v142

Displaying 8 results from an estimated 8 matches for "v142".

Did you mean: v1.2
2005 Jan 17
1
rpart
Hi, there: I am working on a classification problem by using rpart. when my response variable y is binary, the trees grow very fast, but if I add one more case to y, that is making y has 3 cases, the tree growing cannot be finished. the command looks like: x<-rpart(r0$V142~.,data=r0[,1:141], parms=list(split='gini'), cp=0.01) changing cp or removing parms does not help. summary($V142) gives like: > summary(r0$V142) 0 1 2 370 14 16 I am not sure if rpart can do this or there is something wrong with my approach. Please be advised. Ed
2005 Jan 25
3
multi-class classification using rpart
...ed data as below, the program seems to take forever. I am not sure if it is due to slowness or there is something wrong with my codes or data manipulation. Please be advised ! The data is described as the output from str() function. The call to rpart is like: library(rpart) test_tree<-rpart(x$V142 ~ ., data=x, parms=list(split='gini'), cp =0.01) the response variable is $V142, with 3 levels. Thanks for your suggestions! Ed. > str(x) `data.frame': 500 obs. of 142 variables $ V1 : int 4 4 4 4 4 4 4 4 4 4 ... $ V2 : Factor w/ 8 levels "1","2",&quot...
2005 Jan 06
1
multiple trees
...<- all.data[idx,] n.each.part <- as.integer(n/n.folds) r.model<- vector() r.model.prune<- vector() for(i in 1:n.folds) { cat('Fold ',i,'\n') out.fold <- ((i-1)*n.each.part+1):(i*n.each.part) tmp<-all.data[-(out.fold),1:141] r.model[i]<- rpart(all.data$V142~., data=tmp, parms=list(split='gini'), cp=0) #r.model.prune[i]<-prune(r.model[i], cp=mcp) } return (r.model) }
2008 Jul 14
2
long data frame selection error
...0, V91, V92, V93, V94, V95, V96, V97, V98, V99, V100, V101, V102, V103, V104, V105, V106, V107, V108, V109, V110, V111, V112, V113, V114, V115, V116, V117, V118, V119, V120, V121, V122, V123, V124, V125, V126, V127, V128, V129, V130, V131, V132, V133, V134, V135, V136, V137, V138, V139, V140, V141, V142, V143, V144, V145, V146, V147, V148, V149, V150, V151, V152, V153, V154, V155, V156, V157, V158, V159, V160, V161, V162, V163, V164, V165, V166, V167, V168, V169, V170, V171, V172, V173, V174, V175, V176, V177, V178, V179, V180, V181, V182, V183, V184, V185, V186, V187, V188, V189, V190, V191, V192...
2005 Jan 25
0
Collapsing solution to the question discussed above: Re: multi-class classification using rpart
...data manipulation. > >>> > >>>Please be advised ! > >>> > >>>The data is described as the output from str() function. The call to > >>>rpart is like: > >>> > >>>library(rpart) > >>>test_tree<-rpart(x$V142 ~ ., data=x, > >>>parms=list(split='gini'), cp =0.01) > >>> > >>>the response variable is $V142, with 3 levels. > >>> > >>>Thanks for your suggestions! > >>> > >>>Ed. > >> > >>[snip] > &...
2006 Feb 01
2
sort columns
...uot;v127" "v128" "v129" "v13" "v130" "v131" "v132" [39] "v133" "v134" "v135" "v136" "v137" "v138" "v139" "v14" "v140" "v141" "v142" "v143" "v144" "v145" "v146" "v147" "v148" "v149" "v15" [58] "v150" "v151" "v152" "v153" "v154" "v155" "v156" "v157" "v158&quo...
2008 Oct 27
1
Problem with script,
I?m sorry, in my last email I forgot to attach the data I?m using wich is a matrix of 175x175 filled with 0?s and 1?s 0 is the sea 1 is the continental land The script is area.r Thank you very much. Carlos L?pez -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An embedded and
2011 Apr 08
2
lars - lasso problem
hi, I have problem in following code, error is occurred. I have attached my data herewith. and my code is as following, > library(lars) Loaded lars 0.9-8 Warning message: package 'lars' was built under R version 2.12.2 > x<- read.table("D:/spring '11/james reggression/NewFeature.txt") > y<-read.table("D:/spring '11/lars/RFU.txt") > out<-