TorchLean API

NN.API.Trainer.Reporting

Training Reports #

Training curves, metric histories, and logs produced by Trainer runs.

Loss measured before and after a training run.

  • before : α

    Loss measured before any updates in the run.

  • after : α

    Loss measured after all requested updates in the run.

Instances For
    @[instance_reducible]
    def TorchLean.Training.shouldReport (every completed : Nat) :

    Return whether a completed step should emit a periodic report.

    Instances For

      Write a training log to an enabled or disabled destination.

      Instances For
        def TorchLean.Training.writeLossComparison (destination : LogDestination) (title : String) (steps : Nat) (lossBefore lossAfter : Float) (notes : Array String := #[]) :

        Write a before/after loss log to an enabled or disabled destination.

        Instances For

          First and last values of a nonempty scalar training curve.

          • lastStep : Nat

            Step associated with the last value.

          • firstValue : Float

            First recorded value.

          • lastValue : Float

            Last recorded value.

          Instances For

            Return the endpoints of a scalar curve, or none when it contains no values.

            Instances For
              def TorchLean.Training.Curve.endpoints (curve : Curve) (context : String := "training curve") :

              Return the endpoints of a scalar curve or raise a contextual error when it is empty.

              Instances For

                Print loss before and after the updates represented by a scalar training curve.

                Instances For
                  def TorchLean.Training.Curve.writeLog (curve : Curve) (destination : LogDestination) (title : String) (seriesName : String := "loss") (notes : Array String := #[]) (color : String := "#4e79a7") :

                  Write a scalar curve to an enabled or disabled training-log destination.

                  Instances For
                    def TorchLean.Training.MetricHistory.writeLog (history : MetricHistory) (destination : LogDestination) (title : String) (notes : Array String := #[]) :

                    Write named metric series to an enabled or disabled training-log destination.

                    Instances For