CIFAR10Image

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

Represents a single CIFAR-10 image with its label.

CIFAR-10 consists of 60,000 32x32 color images in 10 classes:

  • 50,000 training images

  • 10,000 test images

Classes:

  • 0: airplane

  • 1: automobile

  • 2: bird

  • 3: cat

  • 4: deer

  • 5: dog

  • 6: frog

  • 7: horse

  • 8: ship

  • 9: truck

Constructors

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

Properties

Link copied to clipboard

The pixel data of the image as a ByteArray (3x32x32 = 3072 bytes, channel-first RGB).

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