We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
here is the code to replicate the issue: inp = np.array([[-1, -1], [-2, -1], [1, 1], [2, 1]])
model = sklearn.ensemble.RandomForestClassifier().fit(inp, [1,1,0,0]) predictions, bias, contributions = ti.predict(model, inp)
Error occurs at line 63 in treeinterpreter.py in _predict_tree(model, X, joint_contribution)
This is because not all model.estimator_ return tree_ values as 2D.
The text was updated successfully, but these errors were encountered:
This bug is fixed in the latest version, try to update.
Sorry, something went wrong.
No branches or pull requests
here is the code to replicate the issue:
inp = np.array([[-1, -1],
[-2, -1],
[1, 1],
[2, 1]])
model = sklearn.ensemble.RandomForestClassifier().fit(inp, [1,1,0,0])
predictions, bias, contributions = ti.predict(model, inp)
Error occurs at line 63 in treeinterpreter.py in _predict_tree(model, X, joint_contribution)
This is because not all model.estimator_ return tree_ values as 2D.
The text was updated successfully, but these errors were encountered: