sb-ai-lab / LightAutoML

Fast and customizable framework for automatic ML model creation (AutoML)
https://developers.sber.ru/portal/products/lightautoml
Apache License 2.0
1.18k stars 51 forks source link

TypeError: numpy boolean subtract, the - operator, is not supported #65

Closed shravankoninti closed 1 year ago

shravankoninti commented 1 year ago

Hi Team ,

I am running a regression problem. I am getting this error. Can you please help resolve.

TypeError: numpy boolean subtract, the - operator, is not supported, use the bitwise_xor, the ^ operator, or the logical_xor function instead.

image

image

VaBun commented 1 year ago

Hi, thank you for reporting! Could you please provide us with the data description and the task you are running to reproduce the behavior? It's best if you attach an URL to the data if it's possible.

shravankoninti commented 1 year ago

Unfortunately - this is part of some competition that is happening currently - Even if I provide that data it will not help because I have lot of derived features. Is there any way privately I can share the prepared data with you - I meant the data I prepared for train and test information along with derived features! Please let me know!

VaBun commented 1 year ago

OK. First of all, try restarting the whole kernel and running your code again. If it didn't help, try to determine the feature_name causing the problem. If it's your self-prepared feature, you can show the piece of feature generation code.

shravankoninti commented 1 year ago

X.replace({False: 0, True: 1}, inplace=True) test_X.replace({False: 0, True: 1}, inplace=True)

BTW - This will solve the above error. Boolean values are expected to be replaced as int.