search for: 10tree

Displaying 1 result from an estimated 1 matches for "10tree".

2011 Sep 18
1
randomForest2Rules
...#39;ve created. I've used randomForest2Rules function from "rattle" package however I get an error "Error in if (var.class == "character" | var.class == "factor") { : argument is of length zero" Sample code: library(rattle) library(randomForest) iris.10tree <- randomForest(Species ~ ., data=iris, ntree=10) iris.10tree printRandomForests(iris.10tree) #this prints the rules as described in the vignette ruleset<-randomForest2Rules(iris.10tree) # this does not work and gives the error I mentioned above. Rattle package: http://cran.r-project.org/web...