TorchLean API

NN.API.Samples.Bands

Small Band-Image Dataset (4×4) #

Several TorchLean tutorials use a compact 4×4 image classification task:

This module packages that synthetic dataset in one place so examples can stay focused on models and training rather than data-loading infrastructure.

Class Spec #

Canonical label set for the band dataset: vertical ↦ 0, horizontal ↦ 1.

Instances For

    Typed Tensors (Tensor-First) #

    @[reducible, inline]

    Canonical image shape for the band dataset (single-channel 4×4).

    Instances For

      Training set samples: a small list of (x, label) pairs.

      Instances For

        Probe set for reporting: (name, x, expectedLabel) triples.

        Instances For

          Cast trainCHWFloat into an arbitrary scalar backend α.

          Instances For

            Cast probesCHWFloat into an arbitrary scalar backend α.

            Instances For