【问题标题】:Test Accuracy (Image Classification) in PythonPython 中的测试精度(图像分类)
【发布时间】:2020-08-05 03:58:38
【问题描述】:

我已经训练了我的数据集并且已经绘制了它。一切似乎都很好,但是当我想打印测试精度时

print('\nTest accuracy:', acc)

输出是这样的

Test accuracy: [0.7384201, 0.8907454, 0.9277824, 0.9450478, 0.9409635, 0.9640769, 0.97057456, 0.9810638, 0.9780934, 0.980414, 0.9876543, 0.9918314, 0.9961014, 0.9967511, 0.9906247]

我不明白 bcs 我期望的是Test accuracy: 0.8802(例如)

这是我的notebook,完整代码

【问题讨论】:

  • 我看不到笔记本:Notebook loading error There was an error loading this notebook. Ensure that the file is accessible and try again. Error loading https://apis.google.com/js/client.js https://drive.google.com/drive/?action=locate&id=1YVXF6aEMyZrPhMaI0W44XxlhivqCaV20&authuser=0
  • 对不起,你想再看看我刚刚更新吗

标签: python image artificial-intelligence classification


【解决方案1】:

实际上我只需要这样做 print(np.sum(acc)/len(acc)) 而不是?

【讨论】:

    猜你喜欢
    • 2013-12-29
    • 2019-02-07
    • 2021-02-07
    • 2020-12-22
    • 2020-09-08
    • 1970-01-01
    • 2017-07-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多