Skip to content
New issue

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

Home page use example code error. #27

Open
lugq1990 opened this issue Aug 5, 2019 · 0 comments
Open

Home page use example code error. #27

lugq1990 opened this issue Aug 5, 2019 · 0 comments

Comments

@lugq1990
Copy link

lugq1990 commented Aug 5, 2019

Hi team,
As I'm testing the treeinterpreter module for random forest from the home example code, the last code for examing the random forest prediction and using the interpreter results with bias + np.sum(contributions, axis=1). I think it's not right by using the rf.predict function to get the prediction, correct way should use the rf.predict_proba() function to get the probability, right? As sklearn will convert the probability with argmax to get the index as label for prediction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant