TorchLean API

NN.Examples.Data.ToyPaths

Generated Tutorial Dataset Paths #

TorchLean tutorials can generate a few small deterministic datasets under NN/Examples/Data/. This module centralizes:

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

    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).

              Instances For