description: build Decision Tree for wine dataset in R language
read data From File
1 | wine<-read.table("E:\\wine.data", |
Data mining using J48 Decision Tree classifier
1 | wine.scale <- cbind(wine[1], scale(wine[-1])) |
J48 Model
1 | wine_dt=J48(Type~.,data=data.tr) |
rpart get tree rules
1 | library(rpart) |
party
1 | update.packages() |
party ctree()
1 | p_ctree <- ctree(Type ~., data=data.tr) |