Skip to content

Error when calling showWaterfall #40

@sbsrouteur

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?

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