get.used.features {Pigengene} | R Documentation |
Only some of the features will be automatically selected and used in a
decision tree. However, an object of class C5.0
does not have the
selected feature names explicitly. This function parses the tree
component and extracts the names of features contributing to the tree.
get.used.features(c5Tree)
c5Tree |
A decision tree of class |
A character vector of the names of features (module eigengenes) contributing to the input decision tree.
Amir Foroushani
Pigengene-package
,
make.decision.tree
, compact.tree
,
compute.pigengene
, module.heatmap
,
get.fitted.leaf
, preds.at
,
Pigengene-package
## Data: data(aml) data(mds) data(pigengene) d1 <- rbind(aml,mds) ## Fiting the trees: trees <- make.decision.tree(pigengene=pigengene, Data=d1, saveDir="trees", minPerLeaf=15, doHeat=FALSE,verbose=3, toCompact=FALSE) get.used.features(c5Tree=trees$c5Trees[["15"]])