Skip to content

Error when calling showWaterfall #40

Description

@sbsrouteur

Hello,

I am relatively new to ML, and am trying to use xgboost explainer to understand the outcome of some linear models I am building.
Following the example at:
article on xgboostexplainer
I have adapted the sample code for my model.
I can build an explainer, and run explainPredictions without errors.

However when trying showWaterfall, I get the following error message.

`Extracting the breakdown of each prediction...
|================================================================================| 100%

DONE!
Error in slice.xgb.DMatrix(object, idxset) :
INTEGER() can only be applied to a 'integer', not a 'double'`

What does this mean I did wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions