| varImpStruct-class {MLInterfaces} | R Documentation |
collects data on variable importance
Objects can be created by calls of the form new("varImpStruct", ...).
These are matrices of importance measures with separate
slots identifying algorithm generating the measures and
variable names.
.Data:"matrix" actual importance
measures method:"character" tag varnames:"character" conformant
vector of names of variables
Class "matrix", from data part.
Class "structure", by class "matrix".
Class "array", by class "matrix".
Class "vector", by class "matrix", with explicit coerce.
Class "vector", by class "matrix", with explicit coerce.
signature(x = "varImpStruct"): make a bar plot,
you can supply an argument resolveenv which will look up variable
names in a translation environment signature(object = "varImpStruct"): simple abbreviated
display signature(object = "classifOutput"): extractor
of variable importance structurelibrary(golubEsets) data(golubMerge) library(hu6800) smallG <- golubMerge[1:60,] rf <- randomForestB( smallG, "ALL.AML", 1:40, importance=TRUE ) plot( getVarImp( rf ), n=10, resolveenv=hu6800SYMBOL ) gb <- gbmB( smallG, "ALL.AML", 1:40 , n.minobsinnode=3 , n.trees=6000) plot( getVarImp( gb ), n=10, resolveenv=hu6800SYMBOL )