Description Usage Arguments Value Author(s) Examples
Compute the importance measures as a named vector
1 2 3 |
x |
an object of class |
type |
the type of importance measure. For |
sort |
if |
... |
further arguments for other methods |
a named vector of importance measures, one for each variable (or species), possibly sorted
Original code written by N. Ellis, CSIRO, Cleveland, Australia. <Nick.Ellis@csiro.au>. Modified by S.J. Smith, DFO, Dartmouth, NS, Canada. <Stephen.Smith@dfo-mpo.gc.ca>
1 2 3 4 5 6 7 8 9 | 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(f1)
importance(f1, "Species")
importance(f2, "Impurity")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.