Dragon API Dragon v0.3.0 Python Accuracy¶ class dragon.vm.caffe.core.layers.Accuracy(layer_param)[source]¶ Compute the top-k accuracy. Examples: layer { type: "Accuracy" bottom: "ip2" bottom: "label" top: "acc" accuracy_param { axis: 1 top_k: 1 ignore_label: -1 } }