识别手写数字的神经网络为什么需要10个输出而不是四个?一个简单的回答

如果输出为四个,那么输出层的每个神经元需要学习的是“1和2的手写体之间的区别”之类的断言;

如果输出为十个,那么输出层的每个神经元需要学习的只是“判断一幅图片是不是1”这样的断言。

而描述一个图片是不是某个数字比描述两个数字之间的区别容易的多。

(问题来自Neural networks and deep learning

You might wonder why we use 10 output neurons. After all, the goal of the network is to tell us which digit (0,1,2,…,9) corresponds to the input image. A seemingly natural way of doing that is to use just 44 output neurons, treating each neuron as taking on a binary value, depending on whether the neuron's output is closer to 0 or to 1. Four neurons are enough to encode the answer, since 24=16 is more than the 10 possible values for the input digit. Why should our network use 10 neurons instead? Isn't that inefficient? The ultimate justification is empirical: we can try out both network designs, and it turns out that, for this particular problem, the network with 1010output neurons learns to recognize digits better than the network with 4 output neurons. But that leaves us wonderingwhyusing 1010output neurons works better. Is there some heuristic that would tell us in advance that we should use the 10-output encoding instead of the 4-output encoding?

……

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 耿耿喜欢余淮,贝塔简单知道 余淮喜欢耿耿,只有路星河知道 路星河喜欢耿耿,全世界都知道 简单喜欢韩叙,只有韩叙不知...
    yangming14阅读 186评论 0 0
  • 听《为你读诗》,想起还不太遥远的过去。 我和儿子都喜欢下雨的夜晚,当然是小雨,偶尔伴着遥远低沉的雷声更好。儿子说,...
    维C多阅读 141评论 0 0
  • 2017年8月7日(丁酉年闰六月十六)立秋安徽休宁晨山:晴午有阵雨复转晴 26—35° 立秋日的晨山,阳光还是那么...
    刘丽赏阅读 329评论 1 1
  • 婚后生活的第一次重大变故多数是来自于孩子的降生,很多夫妻发现,有了孩子之后,似乎才发现和对方有这么多的不一样的观点...
    熙宝爱吃饭阅读 476评论 0 2