Closed p-schaefer closed 1 year ago
@p-schaefer Thanks for your interest in the project. I have fixed the weights check. Can you please re-install the package and re-try. Thanks.
Yep, that fixed it. Thanks @StatMixedML !
This appears to break things in the other direction. Now if the dataset doesn't have weights you get AttributeError: 'NoneType' object has no attribute 'all'
. It should work for both cases if the code uses is
rather than ==
, i.e. if data.get_weight() is None:
, as that will return False if weights exist, rather than an array of False. And is
will return a simple True when the return value is actually None.
I'm getting an error when I try to use weights in lgb datasets:
I get the following error: