fairml icon indicating copy to clipboard operation
fairml copied to clipboard

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

Open Dola47 opened this issue 4 years ago • 1 comments

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.

Dola47 avatar May 20 '20 10:05 Dola47

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!

adebayoj avatar May 27 '20 17:05 adebayoj