Metrics

NNJulia.Metrics.BinaryAccuracyType
BinaryCrossentropy

Represents the binary accuracy metric

Field

  • threshold: The threshold used to decide if the output is 0 or 1. Every predictions > threshold is set to 1
source
NNJulia.Metrics.compute_accuracyFunction
compute_accuracy(metrics::BinaryAccuracy, predictions::Tensor, target::Union{Tensor,AbstractArray,Float64,Int64})
compute_accuracy(metrics::CategoricalAccuracy, predictions::Tensor, target::Union{Tensor,AbstractArray,Float64,Int64})
compute_accuracy(metrics::Accuracy, predictions::Tensor, target::Union{Tensor,AbstractArray,Float64,Int64})

Compute the accuracy according to the metrics given.

source