NiklasPfister / adaXT

adaXT: tree-based machine learning in Python
https://niklaspfister.github.io/adaXT/
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Forest Weights and Honest Forests #81

Closed svbrodersen closed 3 months ago

svbrodersen commented 3 months ago

This pull requests updates the RandomForest to now also include honest_tree and honest_forest sampling for creating honest forests. Furthermore, the RandomForest has been generalized and predict_forest_weights have been added to get the forest weight in a similar manner as with a single DecisionTree.

It has also made some changes to the DecisionTree. Most notably removed the get_leaf_matrix method and instead added that as a default when X=None on the predict_leaf_matrix.