Generated Tutorial Dataset Paths #
TorchLean tutorials can generate a few small deterministic datasets under NN/Examples/Data/.
This module centralizes:
- the default data directory,
- the file paths of the generated sample datasets, and
- a small CLI convenience for overriding the directory via
--data-dir.
These helpers are small and predictable: they exist so tutorial code does not hardcode paths (or reimplement the same flag parsing) in many places.
Default relative directory containing generated tutorial datasets.
Instances For
def
NN.Examples.Data.ToyPaths.takeDataDir
(args : List String)
(default : System.FilePath := defaultDataDir)
:
Parse an optional --data-dir PATH flag (defaults to defaultDataDir).
This is used by tutorials that load local generated CSV/NPY files from disk.
Instances For
toy_regression.csv (2D regression).
Instances For
toy_regression_X.npy (shape 25x2).
Instances For
toy_regression_y.npy (shape 25x1).
Instances For
toy_cifar10like_X.npy (shape 200x3x32x32).
Instances For
toy_cifar10like_y.npy (shape 200).