Displaying 2 results from an estimated 2 matches for "weka_tree".
2008 Jun 17
1
Decision Trees RWeka
Hello,
I have a question concerning decision
trees coming from RWeka :
library(RWeka)
m =J48(Species~.,data=iris)
How could such a decision tree be transferred
into a matrix, pretty much in the same fashion,
as it is done by getTree() in library(ofw)
library(ofw)
data(srbct)
attach(srbct)
##ofwCART
learn.cart.keep <- ofw(srbct,
2011 Nov 13
1
libary(Rweka) J48 design tree
Hello everybody
I'm having some difficulties to design the decision tree algorithm J48.
I am using the following code and when I run it gives me the following
message
plot(m1)
Error in plot.Weka_tree(m1) :
Plotting of trees with multi-way splits is currently not implemented.
#The code
library(RWeka)
library(randomForest)
library(party)
if(require(mlbench, quietly = TRUE) && require(party, quietly = TRUE))
m1 <- J48(income2 ~ age+workclass+native.country, data = dataset)
m1
plot...