我正在研究一个不平衡的分类问题,我想使用Kappa作为我的评估指标。考虑到分类器接受权重(我已经给了它),我应该仍然使用加权kappa还是只使用标准kappa?老实说,我不完全确定有什么区别。
model = CatBoostClassifier(
iterations = 1000,
learning_rate = 0.1,
random_seed = 400,
one_hot_max_size = 15,
loss_function = 'MultiClass',
eval_metric = 'WKappa', # weighted kappa
#ignored_features = ignore_list,
class_weights= weights,
od_type = "Iter",
od_wait = 50,
task_type = 'GPU',
border_count = 124,
depth = 12
)发布于 2020-10-08 10:16:46
我在Catboost github (问题)页面上发布了同样的问题,并得到了答案。这个链接可以在这里找到:https://github.com/catboost/catboost/issues/1447
WKappa中的类权重和权重是不同的。
WKappa度量的计算由两个步骤组成:
https://datascience.stackexchange.com/questions/82684
复制相似问题