TorchLean API

NN.API.Public.Facade.Trainer.Summary

TorchLean Trainer Summaries #

Small public report types returned by the high-level trainer facade.

Backend-independent before/after training summary.

Losses are rendered as strings because the runtime scalar type is chosen inside the training run.

  • metric : String

    Metric name, usually loss.

  • steps :

    Number of optimizer steps requested by the configuration.

  • before : String

    Metric before training.

  • after : String

    Metric after training.

Instances For

    One-line summary suitable for quickstarts and scripts.

    Instances For

      Print the one-line before/after summary.

      Instances For

        Parse a ToString-rendered scalar as a JSON number when possible.

        Instances For

          Convert a before/after summary into the standard two-point TrainLog when values are finite.

          Instances For

            Read the before/after metrics back as ordinary Floats.

            Most scripts call trained.printSummary. Examples that write JSON logs can use this operation when they need the same metrics as Floats.

            Instances For

              Print before/after losses and return them for artifact writers.

              Instances For

                Write this summary to a log destination when logging is enabled.

                Instances For