【发布时间】:2021-07-13 22:19:37
【问题描述】:
我正在尝试学习 catboost,但我看到两个与 CatBoostClassifier 混淆的术语:
custom_loss 和 custom_metric。
custom_metric:
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
【问题讨论】:
标签: python scikit-learn xgboost catboost