You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling explainer.tree_specific_reason() and explainer.minimal_tree_specific_reason() on boosted trees raise this error
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[34], line 6
4 for instance, prediction in instances:
5 explainer = Explainer.initialize(model, instance)
----> 6 tree_specific = explainer.tree_specific_reason()
7 minimal = explainer.minimal_tree_specific_reason()
8 display(HTML(f"<h4>Explanations for instance: {i}"))
File ~/Logiciels/pyxai/pyxai/sources/core/explainer/explainerBT.py:264, in ExplainerBT.tree_specific_reason(self, n_iterations, time_limit, seed, history)
260 time_limit = 0
262 if self.c_BT is None:
263 # Preprocessing to give all trees in the c++ library
--> 264 self.c_BT = c_explainer.new_classifier_BT(self._boosted_trees.n_classes)
266 for tree in self._boosted_trees.forest:
267 c_explainer.add_tree(self.c_BT, tree.raw_data_for_CPP())
AttributeError: module 'c_explainer' has no attribute 'new_classifier_BT'
The text was updated successfully, but these errors were encountered:
Calling
explainer.tree_specific_reason()
andexplainer.minimal_tree_specific_reason()
on boosted trees raise this errorThe text was updated successfully, but these errors were encountered: