Skip to content

Error in if (ncol(res) == 1) { : argument is of length zero #51

Open
@marboe123

Description

@marboe123

Hello,

I receive the error above after I use this command:

shap_values <- fastshap::explain(model_n, X = trainval, exact = TRUE)

model_n is a multiclassification model fitted with xgboost.
trainval is my train-data

When I run this set-up for binary classification, the shap values are calculated correctly.
When I run this set-up for multiclass classification, the error above is generated.

Do you have any idea what can be the cause?

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions