TorchLean API

NN.API.Trainer.Reporting

Training Reports #

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

def TorchLean.Training.shouldReport (every completed : ) :

Return whether a completed step should emit a periodic report.

Instances For

    Write a training log as JSON and report the output path.

    Instances For

      Write a training log to an enabled or disabled destination.

      Instances For
        def TorchLean.Training.writeLossComparison (path : System.FilePath) (title : String) (steps : ) (beforeLoss afterLoss : Float) (notes : Array String := #[]) :

        Write a log containing the loss before and after a fixed number of training steps.

        Instances For
          def TorchLean.Training.writeLossComparisonTo (destination : LogDestination) (title : String) (steps : ) (beforeLoss afterLoss : Float) (notes : Array String := #[]) :

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

          Instances For

            First and last values of a nonempty scalar training curve.

            • finalStep :

              Step associated with the final value.

            • first : Float

              First recorded value.

            • last : 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 the first and last loss from a scalar training curve.

                  Instances For
                    def TorchLean.Training.Curve.writeLog (curve : Curve) (path : System.FilePath) (title : String) (seriesName : String := "loss") (notes : Array String := #[]) :

                    Write a scalar curve as a one-series training log.

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

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

                      Instances For