Skip to content

Commit aa45b90

Browse files
committed
Fix loss function
1 parent f0c4fc8 commit aa45b90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autointent/modules/scoring/_catboost/catboost_scorer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def fit(
216216
y = np.asarray(cast("Sequence[int]", labels), dtype=np.int64)
217217

218218
default_loss = (
219-
"MultiLabel"
219+
"MultiLogloss"
220220
if self._multilabel
221221
else ("MultiClass" if self._n_classes > BINARY_CLASS_THRESHOLD else "Logloss")
222222
)

tests/assets/configs/multilabel.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
learning_rate: [0.05, 0.1]
3131
depth: [1, 10]
3232
l2_leaf_reg: [1, 5]
33-
loss_function: ["MultiLabel"]
33+
loss_function: ["MultiLogloss"]
3434
random_seed: [42]
3535
classification_model_config:
3636
- null

0 commit comments

Comments
 (0)