Record Class FineTuningJobCheckpoint.Metrics

java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.FineTuningJobCheckpoint.Metrics
Enclosing class:
FineTuningJobCheckpoint

public static record FineTuningJobCheckpoint.Metrics(double step, double trainLoss, double trainMeanTokenAccuracy, double validLoss, double validMeanTokenAccuracy, double fullValidLoss, double fullValidMeanTokenAccuracy) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Metrics(double step, double trainLoss, double trainMeanTokenAccuracy, double validLoss, double validMeanTokenAccuracy, double fullValidLoss, double fullValidMeanTokenAccuracy)
    Creates an instance of a Metrics record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    double
    Returns the value of the fullValidLoss record component.
    double
    Returns the value of the fullValidMeanTokenAccuracy record component.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the step record component.
    final String
    Returns a string representation of this record class.
    double
    Returns the value of the trainLoss record component.
    double
    Returns the value of the trainMeanTokenAccuracy record component.
    double
    Returns the value of the validLoss record component.
    double
    Returns the value of the validMeanTokenAccuracy record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Metrics

      public Metrics(double step, double trainLoss, double trainMeanTokenAccuracy, double validLoss, double validMeanTokenAccuracy, double fullValidLoss, double fullValidMeanTokenAccuracy)
      Creates an instance of a Metrics record class.
      Parameters:
      step - the value for the step record component
      trainLoss - the value for the trainLoss record component
      trainMeanTokenAccuracy - the value for the trainMeanTokenAccuracy record component
      validLoss - the value for the validLoss record component
      validMeanTokenAccuracy - the value for the validMeanTokenAccuracy record component
      fullValidLoss - the value for the fullValidLoss record component
      fullValidMeanTokenAccuracy - the value for the fullValidMeanTokenAccuracy record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • step

      public double step()
      Returns the value of the step record component.
      Returns:
      the value of the step record component
    • trainLoss

      public double trainLoss()
      Returns the value of the trainLoss record component.
      Returns:
      the value of the trainLoss record component
    • trainMeanTokenAccuracy

      public double trainMeanTokenAccuracy()
      Returns the value of the trainMeanTokenAccuracy record component.
      Returns:
      the value of the trainMeanTokenAccuracy record component
    • validLoss

      public double validLoss()
      Returns the value of the validLoss record component.
      Returns:
      the value of the validLoss record component
    • validMeanTokenAccuracy

      public double validMeanTokenAccuracy()
      Returns the value of the validMeanTokenAccuracy record component.
      Returns:
      the value of the validMeanTokenAccuracy record component
    • fullValidLoss

      public double fullValidLoss()
      Returns the value of the fullValidLoss record component.
      Returns:
      the value of the fullValidLoss record component
    • fullValidMeanTokenAccuracy

      public double fullValidMeanTokenAccuracy()
      Returns the value of the fullValidMeanTokenAccuracy record component.
      Returns:
      the value of the fullValidMeanTokenAccuracy record component