Category

data class Category(val label: String, val score: Float, val index: Int)

Represents a single classification category.

Constructors

Link copied to clipboard
constructor(label: String, score: Float, index: Int)

Properties

Link copied to clipboard
val index: Int

The index of this category in the model's output tensor.

Link copied to clipboard

The label name of this category.

Link copied to clipboard

The confidence score (probability) for this category, typically in the range 0, 1.