FashionMNISTImage

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

Represents a single Fashion-MNIST image with its label.

Fashion-MNIST is a dataset of Zalando's article images consisting of:

  • 60,000 training examples

  • 10,000 test examples

  • Each example is a 28x28 grayscale image

  • Associated with a label from 10 classes

Classes:

  • 0: T-shirt/top

  • 1: Trouser

  • 2: Pullover

  • 3: Dress

  • 4: Coat

  • 5: Sandal

  • 6: Shirt

  • 7: Sneaker

  • 8: Bag

  • 9: Ankle boot

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

Returns the class name for this image's label.

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