catboost/catboost

Error: catboost metric [MultiLogloss] and loss [HammingLoss] are incompatible

oliver-seliom opened this issue · 1 comments

Problem:

I get the following error when trying multi-class following the tutorial: https://github.com/catboost/tutorials/blob/master/classification/multilabel_classification_tutorial.ipynb

catboost metric [MultiLogloss] and loss [HammingLoss] are incompatible

This error only occurs when training with GPU, not sure why training with CPU is ok.

clf = CatBoostClassifier(
    loss_function='MultiLogloss',
    eval_metric='HammingLoss',
    iterations=500,
    class_names=Y_train.columns.tolist(),
    task_type='GPU',
    devices='0:1',
)
clf.fit(train_pool, eval_set=test_pool, metric_period=1, verbose=1)

catboost version: latest
Operating System: Linux
GPU: T4

HammingLoss is not currently supported on GPU, we'll improve an error message, though.