treeinterpreter icon indicating copy to clipboard operation
treeinterpreter copied to clipboard

Home page use example code error.

Open lugq1990 opened this issue 6 years ago • 0 comments

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.

lugq1990 avatar Aug 05 '19 06:08 lugq1990