machine learning - Retrieve candidate attributes for a node in Decision Tree using R -


i using r creating decision tree using cart. did using

feature_vectors <- read.table("c:/users/dvs/desktop/tagme!-data/train/feature_vectors.txt", quote="\"") set.seed(1234) ind <- sample(2, nrow(winequality.red), replace=true, prob=c(0.7, 0.3)) traindata <- winequality.red[ind==1,] testdata <- winequality.red[ind==2,] myformula <- quality ~ fixed.acidity + volatile.acidity + citric.acid + residual.sugar + chlorides + free.sulfur.dioxide + total.sulfur.dioxide + density + ph + sulphates + alcohol table(predict(wine_ctree), traindata$quality) print(wine_ctree) plot(wine_ctree) 

now, need print list of candidate attributes possible root node. ie node minimal deviation in (im)purity values selected root node. there way use built in functions or have modify source?


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -