search for: tree_x

Displaying 1 result from an estimated 1 matches for "tree_x".

Did you mean: free_x
2011 Mar 06
1
transaction list transformation to use rpart.
...1 1 0 1 cust2 0 0 1 0 1 cust3 0 1 0 0 0 ... However the as.data.frame(a) transforms the matrix into a numeric data.frame so when I implement the rpart algorithm it automatically returns a regression classification tree. calling rpart like names<-colnames(b) tree_X.9911 <- rpart(X.9911 ~ ., data=b[, c(names)], method="class") and returns: 1) root 20000 625 0 (0.96875000 0.03125000) 2) X.9342< 0.5 19598 311 0 (0.98413103 0.01586897) * 3) X.9342>=0.5 402 88 1 (0.21890547 0.78109453) 6) X.9984>=0.5 81 7 0 (0.91358025...