Displaying 1 result from an estimated 1 matches for "randomforest2rul".
Did you mean:
randomforest2rules
2011 Sep 18
1
randomForest2Rules
Hi,
I'm trying to extract the rules from every tree in the random forest model
that I'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=ir...