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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -