【问题标题】:What causes high top_k_categorical_accuracy but low categorical_accuracy in Keras是什么导致 Keras 中 top_k_categorical_accuracy 高但 categorical_accuracy 低
【发布时间】:2017-09-17 08:50:34
【问题描述】:

我正在使用 Conv2D 训练模型并开始突然获得很高的 top k 分类准确度,为 1.0,但分类准确度非常低(接近 0.006)。

我有 108 个不同的类别,所以我唯一能想到的就是它会以某种方式卡在一个类别上,即使数据集非常平衡。

所以我的问题很笼统: 什么会导致 Keras 中 top_k_categorical_accuracy 高而 categorical_accuracy 低?

【问题讨论】:

  • k 的值是多少?
  • @Yu-Yang 好问题,它是标准的,所以设置为 5。

标签: tensorflow keras tensorflow-gpu keras-2


【解决方案1】:

原因是 x 值未标准化。一旦我将它们归一化,top_k_categorical_accuracy 就会像预期的那样变得非常低。

【讨论】:

    猜你喜欢
    • 2019-10-06
    • 1970-01-01
    • 1970-01-01
    • 2019-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-12
    • 1970-01-01
    相关资源
    最近更新 更多