kumulant

Accuracy

@Serializable
@SerialName(value = "Accuracy")
data class Accuracy(val numClasses: Int) : PairedStatSpec<WeightedMeanResult> (source)

Spec for AccuracyStat: weighted classification accuracy over (predictedClass, trueClass).

numClasses is required rather than defaulted: accuracy is only comparable with ConfusionMatrix over the same stream if both bound the labels the same way, and defaulting a bound would silently score labels the author never declared.

Constructors

Accuracy

constructor(numClasses: Int)(source)

Properties

numClasses

Number of classes; class indices are [0, numClasses).