Synthetic Band Dataset #
Several TorchLean examples use a compact 4×4 image classification task:
- class
0: a vertical band - class
1: a horizontal band
This domain module owns both the renderer and the canonical 4×4 dataset. Keeping these definitions
out of TorchLean.Data.Synthetic prevents a particular image layout from becoming part of TorchLean's
general tensor and sample abstractions.
Renderer #
Spatial axis along which a synthetic band varies.
Instances For
Human-readable class name associated with an axis.
Instances For
Render a channel-first rank-three tensor from an in-bounds scalar function.
This shape is part of this particular dataset, not a restriction on TorchLean tensors or models.
Instances For
Render a binary-valued channel-first tensor from a finite predicate.
Instances For
Render a single-channel horizontal or vertical band.
Instances For
Classes and datasets #
Construct a vertical-band class.
Instances For
Construct a horizontal-band class.
Instances For
Generate (tensor, label) samples for every class/offset pair.
Instances For
Generate named samples for reports and prediction probes.
Instances For
Canonical label set for the band dataset: vertical ↦ 0, horizontal ↦ 1.
Instances For
Typed Tensors (Tensor-First) #
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
Small vertical-versus-horizontal dataset with one-hot class targets.
Instances For
Named vertical and horizontal inputs used to inspect a trained classifier.