importance.combinedGradientForest | R Documentation |
combinedGradientForest
object
Provide access to the importance values of predictors or species
## S3 method for class 'combinedGradientForest'
importance(x, type = c("Weighted", "Raw", "Species")[1], sort = TRUE, ...)
x |
an object of class |
type |
type of importance measure. The choices are
|
sort |
if |
... |
further arguments passed to or from other methods. |
a named vector of importance measures.
N. Ellis, CSIRO, Cleveland, Australia. <Nick.Ellis@csiro.au>. S.J. Smith, DFO, Dartmouth, NS, Canada. <Stephen.Smith@dfo-mpo.gc.ca>
importance.gradientForest
data(CoMLsimulation)
preds <- colnames(Xsimulation)
specs <- colnames(Ysimulation)
f1 <- gradientForest(data.frame(Ysimulation,Xsimulation), preds, specs[1:6], ntree=10)
f2 <- gradientForest(data.frame(Ysimulation,Xsimulation), preds, specs[1:6+6], ntree=10)
f12 <- combinedGradientForest(west=f1,east=f2)
importance(f12)
importance(f12, type = "Species", sort = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.