Skip to content

ValueError: cannot reshape array of size 34712 into shape (17356,) #13

@Dola47

Description

@Dola47

Hi @adebayoj

I just tried to use Fairml to explain my XGBoost Model, and I got the aforementioned error.

I think the error is logical, because in the mse function, I think you are doing the reshape as if it was only a one class situation. However, for my case the output_constant_col and the normal_black_box_output is of size (17356,2). So I am working in a 2 class classification scenario.

Any ideas how to overcome the error mentioned?

Capture (1)

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions