Caffe's second “top” of `“Accuracy”` layer

こ雲淡風輕ζ 提交于 2019-12-11 03:08:16

问题


Looking at the code of "Accuracy" layer, I see there is an option for a second output/"top" for this layer.
What does this second output produce?


回答1:


Looking at accuracy_layer.hpp, where the number of outputs for the layer are defined, there's this comment:

// If there are two top blobs, then the second blob will contain
// accuracies per class.

So, the second "top" of the "Accuracy" layer simply reports per-class accuracies.

Just as a side note for layer Accuracy, the reported Accuracy is normalized by the number of "valid" predictions (same as using normalization: VALID for loss layers).



来源:https://stackoverflow.com/questions/45483604/caffes-second-top-of-accuracy-layer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!