TorchLean API

NN.Examples.Data.Loaders.Csv

CSV loader tutorial #

This tutorial mirrors the "data first" workflow people expect from PyTorch:

  1. Load a dataset from disk (CSV).
  2. Turn it into a fixed-size batched dataset.
  3. Train through the public Trainer API.

Generate a small deterministic regression dataset with python3 NN/Examples/Data/generate_small_data.py:

Build:

The tutorial code is compiled with the rest of TorchLean. For command-line model training, use the torchlean executable examples in NN/Examples/Models.

Optional flags (tutorial-specific):

Public API used here:

A small 2-layer batched MLP 2 -> 8 -> 1.

Instances For

    Command-line help for the CSV loader tutorial.

    Instances For