Skip to content
Prev 178344 / 398506 Next

RWeka prediction

On Sun, 26 Apr 2009, Dajiang Liu wrote:

            
No, because you do not provide sufficient information (as requested by the 
posting guide pointed to below). For me, this works fine:

library("RWeka")
ldat <- iris[1:140,]
tdat <- iris[-(1:140),]
m <- J48(Species ~ ., data = ldat)
predict(m, newdata = tdat)