TorchLean API

NN.Examples.Models.Generative.Autoencoder

Autoencoder CIFAR Example #

Trains a dense 16 → 8 → 4 → 8 → 16 autoencoder with a final sigmoid. The input is the first 16 values of one flattened, channel-first CIFAR-10 image; the target is that same vector. This is a compact reconstruction exercise, not a full-image autoencoder.

The command uses Adam and mean squared error through the public Trainer, then prints a training summary and writes the selected TrainLog JSON. It does not export reconstructed image files.

CLI subcommand name used in terminal banners and error messages.

Instances For

    Default JSON loss-curve path for this command.

    Instances For
      @[reducible, inline]

      Dense autoencoder dimensions shared by the model and data boundary.

      Instances For

        Number of image vectors loaded for each training sample.

        Instances For
          @[reducible, inline]

          Input shape: a batch of flattened CIFAR image vectors.

          Instances For
            @[reducible, inline]

            Target shape: the same flattened image-vector batch, because this is reconstruction.

            Instances For

              Trainable dense autoencoder.

              The architecture is defined in the public model API. The command chooses the dataset, optimizer, runtime options, and logging path.

              Instances For

                Public singleton dataset for compact CIFAR reconstruction.

                Instances For

                  Train the compact autoencoder with the public Trainer surface.

                  Instances For

                    Executable entrypoint for CIFAR reconstruction.

                    The command loads one real CIFAR minibatch, builds the supervised reconstruction sample x -> x, trains the autoencoder for --steps, and writes the standard TorchLean training summary/log.

                    Instances For