Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Dola47 opened this issue May 20, 2020 · 1 comment
Open

Comments

@Dola47
Copy link

Dola47 commented May 20, 2020

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.

@adebayoj
Copy link
Owner

Hi @Dola47, thanks for raising this issue. I'll double check your example. I am currently in the midst of a deadline right now, so I'll get to this in about a week.

Overall, this library is going to undergo an overhaul over the summer, so keep an eye out.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants