scikit-learn__scikit-learn-14053
IndexError: list index out of range in export_text when the tree only has one feature
Verdict: the issue points to the file or function that was changed (Tier B).
Exactly, but in line 893, `feature_names = [feature_names[i] for i in tree_.feature]`, where
The text points to the exact place to change: “Exactly, but in line 893, `feature_names = [feature_names[i] for i in tree_.feature]`, where”
All SWE-bench Verified tasks · more scikit-learn/scikit-learn tasks · How the check works