crflynn / skranger

scikit-learn compatible Python bindings for ranger C++ random forest library
https://skranger.readthedocs.io/en/stable/
GNU General Public License v3.0
51 stars 7 forks source link

Ranger Forest Classifier, Python: how to access the predictions of each tree separately? #152

Closed selinakiefer closed 1 year ago

selinakiefer commented 1 year ago

Hi, if I understand it correctly, in order to be able to access the predictions of each tree of the Ranger Forest Classifier, "enable_tree_details" has to be set "True" (https://skranger.readthedocs.io/en/stable/ranger_forest_classifier.html).

When I do this:

from skranger.ensemble import RangerForestClassifier random_forest_classifier = RangerForestClassifier(enable_tree_details=True)

I get the following error message:

TypeError: init() got an unexpected keyword argument 'enable_tree_details'

I am using Python.

Did I do something wrong or is there any other way to access the predictions of each tree separately?

I would really appreciate your help!

Kind regards Selina

crflynn commented 1 year ago

Are you using a version >=0.6.0?