Soft labels in multiclassification settings. #2964
Unanswered
github-abdellah-elyounsi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I’m trying to train a CatBoost model for a multiclass problem using soft labels instead of hard labels.
My labels are vectors like [0.2, 0.7, 0.1] representing probabilities, instead of hard-coded class labels like [0, 1, 0].
Looking at the CatBoost documentation, it seems that for classification tasks (including multiclass), the labels are expected to be boolean, integer, or string values.
I’m wondering if CatBoost internally has a preprocessing step that automatically converts soft labels by mapping the maximum value to 1 and the rest to 0, or if it strictly requires hard labels.
If not, what would be the recommended way to train a model with soft labels using CatBoost?
Thanks in advance!
The code below works fine, but i'm afraid it's failing silently
Beta Was this translation helpful? Give feedback.
All reactions