gpt4 book ai didi

python - 曲线下面积是否有可能 = 0?

转载 作者:行者123 更新时间:2023-12-01 03:20:41 25 4
gpt4 key购买 nike

我正在使用 xgboost 来解决分类问题。我有一个基本问题。您可以在下面找到训练集和测试集(未见)每轮的 AUC。正如您所看到的,测试集的 AUC 接近 0。您能帮我了解发生了什么吗?

我正在使用Python。

[0]     test-auc:0.4375 train-auc:0.881865
[1] test-auc:0.25 train-auc:0.947957
[2] test-auc:0.166667 train-auc:0.982759
[3] test-auc:0.166667 train-auc:0.984674
[4] test-auc:0 train-auc:0.996169
[5] test-auc:0 train-auc:0.998723
[6] test-auc:0 train-auc:0.998723
[7] test-auc:0 train-auc:0.999361
[8] test-auc:0.041667 train-auc:1
[9] test-auc:0.041667 train-auc:1
[10] test-auc:0.041667 train-auc:1
[11] test-auc:0.041667 train-auc:1
[12] test-auc:0 train-auc:1
[13] test-auc:0 train-auc:1

最佳答案

AUC 为 0 表示预测器为测试集中的所有样本预测了错误的类别。

查看训练集的 AUC,这意味着您的测试集的大小太小,或者您选择了错误的(相反)类别来绘制测试预测的 AUC。

关于python - 曲线下面积是否有可能 = 0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41953976/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com