fails with bigger train sizespython3.7/site-packages/sklearn_porter/estimator/classifier/DecisionTreeClassifier/init.py", line 308, in create_branches
out += temp.format(features[node], '<=', self.repr(threshold[node]))
IndexError: list index out of range
train_X, val_X, train_y, val_y = train_test_split(X, y, random_state=1, train_size=0.0001) clf = DecisionTreeClassifier() clf.fit(train_X, train_y)
Export:
porter = Porter(clf, language='java') output = porter.export(embed_data=True) print(output)
fails with bigger train sizespython3.7/site-packages/sklearn_porter/estimator/classifier/DecisionTreeClassifier/init.py", line 308, in create_branches out += temp.format(features[node], '<=', self.repr(threshold[node])) IndexError: list index out of range