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

Python: Pool.get_label() returns True for bool labels #2133

Closed
Vladimir-Kozlov opened this issue Jul 19, 2022 · 3 comments
Closed

Python: Pool.get_label() returns True for bool labels #2133

Vladimir-Kozlov opened this issue Jul 19, 2022 · 3 comments
Assignees

Comments

@Vladimir-Kozlov
Copy link

Problem: in Python package, Pool.get_label() returns list of True if label passed is list of boolean
Code to reproduce:

import catboost
pool = catboost.Pool([[0], [0]], label=[False, True])
assert pool.get_label() == [True, True]
pool = catboost.Pool([[0], [0]], label=[True, False])
assert pool.get_label() == [True, True]
pool = catboost.Pool([[0], [0]], label=[False, False])
assert pool.get_label() == [True, True]

catboost version: 1.0.6
Operating System: Ubuntu 20.04.04 LTS
CPU: Intel i7

@andrey-khropov andrey-khropov self-assigned this Jul 20, 2022
@bgbg
Copy link

bgbg commented Dec 4, 2022

@andrey-khropov any news on this bug? Any ways to override it?

@Vladimir-Kozlov
Copy link
Author

@bgbg This bug is still present as of 1.1.1. It can be avoided by converting labels to int.

@andrey-khropov
Copy link
Member

Fixed in 103c724

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

No branches or pull requests

3 participants