Skip to content

Treewise importance#630

Open
mnwright wants to merge 2 commits into
masterfrom
treewise_importance
Open

Treewise importance#630
mnwright wants to merge 2 commits into
masterfrom
treewise_importance

Conversation

@mnwright

Copy link
Copy Markdown
Member

Implements tree-wise importance, i.e. returns a matrix of variable importance (trees x features). Usage:

rf <- ranger(Species ~ ., data = iris, importance = "permutation", treewise.importance = TRUE)
rf$variable.importance

Also works for other importance modes, e.g.:

rf <- ranger(Species ~ ., data = iris, importance = "impurity_corrected", treewise.importance = TRUE)
rf$variable.importance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant