MNISTImage

@Serializable
data class MNISTImage(val image: ByteArray, val label: Byte)(source)

Represents a single MNIST image with its label.

Constructors

Link copied to clipboard
constructor(image: ByteArray, label: Byte)

Properties

Link copied to clipboard

The pixel data of the image as a ByteArray (28x28 pixels).

Link copied to clipboard
val label: Byte

The label of the image (0-9).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int