catboost CatBoostClassifier中自定义_损失和自定义_度量之间的差异

2024-09-27 09:28:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试学习catboost,我发现CatBoostClassifier有两个令人困惑的术语:

custom_losscustom_metric

我浏览过这里,上面写着:https://catboost.ai/docs/concepts/python-reference_parameters-list.html#python-reference_parameters-list

自定义度量单位: Metric values to output during training. These functions are not optimized and are displayed for informational purposes only. Some metrics support optional parameters (see the Objectives and metrics section for details on each metric).

那么custom_loss是什么呢

我在R文档中看到了custom_loss的定义:https://catboost.ai/docs/features/loss-functions-desc.html-但在python文档中没有

然而。在python tutorial上,他们定义了一个custom_loss,如下所示:

model = CatBoostClassifier(
    custom_loss=['Accuracy'],
    random_seed=42,
    logging_level='Silent'
)

我是不是遗漏了什么?实际上,custom_loss似乎没有在python文档中的任何地方定义为属性:https://catboost.ai/docs/concepts/python-reference_parameters-list.html#python-reference_parameters-list


Tags: 文档httpsdocs定义htmlcustommetricai
1条回答
网友
1楼 · 发布于 2024-09-27 09:28:05

我从文件中的this link推断出以下内容

我几乎可以肯定,它们引用了相同的参数,但是custom_loss是R名称,而custom_metric是Python名称。显然,只要它们不会引起名称冲突,就可以互换使用

相关问题 更多 >

    热门问题