I'm trying to use the function export_text
from sklearn.tree (version 1.0.2), but when I'm using the parameter feature_names I get an error, this is what I'm trying
# decision_tree is the fitted algorithm
text_representation = export_text(decision_tree=decision_tree, feature_names=decision_tree.feature_names_in_)
If I call the function without the feature_names parameter it works, I already checked and the decision_tree.feature_names_in_
returns the right names, the same I used as input for the algorithm
If I use this other similar function with the same arguments, it works fine
plot_tree(decision_tree=decision_tree, feature_names=decision_tree.feature_names_in_)
any idea of what could it be wrong?