UnboundLocalError of line_shape variable while using ExtraTreeClassifier
karanranawat opened this issue · 0 comments
karanranawat commented
ISSUE
Following error trace was encountered while running ti._predict_forest function for ExtraTreeClassifier model. This works perfectly for RandomForestClassifier.
POTENTIAL CAUSE
Following code block initializes line_shape variable.
treeinterpreter/treeinterpreter/treeinterpreter.py
Lines 56 to 66 in a52a6d7
I see there are blocks specific to DecisionTreeRegressor and DecisionTreeClassifer while initializing line_shape variable.
Do we need to add something specific to Extra Tree Classifier?