Accuracy

class dragon.vm.caffe.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
    }
}