Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Add the hook on forest estimator #22

Merged
merged 12 commits into from
Feb 6, 2021
Merged

[ENH] Add the hook on forest estimator #22

merged 12 commits into from
Feb 6, 2021

Conversation

xuyxu
Copy link
Member

@xuyxu xuyxu commented Feb 5, 2021

This PR enables one to get the forest in the model more efficiently. It turns out that many people are interested to investigate each forest estimator.

To get the forest you want, simply use the following method:

model.get_forest(layer_idx, est_idx, forest_type)

which returns the est_idx-th forest in the layer_idx-th cascade layer of the type: forest_type.

Copy link
Member Author

@xuyxu xuyxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xuyxu xuyxu merged commit f53abc0 into LAMDA-NJU:master Feb 6, 2021
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