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
ConstructorsConstructorDescriptionMetrics(double step, double trainLoss, double trainMeanTokenAccuracy, double validLoss, double validMeanTokenAccuracy, double fullValidLoss, double fullValidMeanTokenAccuracy) Creates an instance of aMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefullValidLossrecord component.doubleReturns the value of thefullValidMeanTokenAccuracyrecord component.final inthashCode()Returns a hash code value for this object.doublestep()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetrainLossrecord component.doubleReturns the value of thetrainMeanTokenAccuracyrecord component.doubleReturns the value of thevalidLossrecord component.doubleReturns the value of thevalidMeanTokenAccuracyrecord component.
-
Constructor Details
-
Metrics
public Metrics(double step, double trainLoss, double trainMeanTokenAccuracy, double validLoss, double validMeanTokenAccuracy, double fullValidLoss, double fullValidMeanTokenAccuracy) Creates an instance of aMetricsrecord class.- Parameters:
step- the value for thesteprecord componenttrainLoss- the value for thetrainLossrecord componenttrainMeanTokenAccuracy- the value for thetrainMeanTokenAccuracyrecord componentvalidLoss- the value for thevalidLossrecord componentvalidMeanTokenAccuracy- the value for thevalidMeanTokenAccuracyrecord componentfullValidLoss- the value for thefullValidLossrecord componentfullValidMeanTokenAccuracy- the value for thefullValidMeanTokenAccuracyrecord component
-
-
Method Details
-
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. -
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. -
equals
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 '=='. -
step
public double step()Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-
trainLoss
public double trainLoss()Returns the value of thetrainLossrecord component.- Returns:
- the value of the
trainLossrecord component
-
trainMeanTokenAccuracy
public double trainMeanTokenAccuracy()Returns the value of thetrainMeanTokenAccuracyrecord component.- Returns:
- the value of the
trainMeanTokenAccuracyrecord component
-
validLoss
public double validLoss()Returns the value of thevalidLossrecord component.- Returns:
- the value of the
validLossrecord component
-
validMeanTokenAccuracy
public double validMeanTokenAccuracy()Returns the value of thevalidMeanTokenAccuracyrecord component.- Returns:
- the value of the
validMeanTokenAccuracyrecord component
-
fullValidLoss
public double fullValidLoss()Returns the value of thefullValidLossrecord component.- Returns:
- the value of the
fullValidLossrecord component
-
fullValidMeanTokenAccuracy
public double fullValidMeanTokenAccuracy()Returns the value of thefullValidMeanTokenAccuracyrecord component.- Returns:
- the value of the
fullValidMeanTokenAccuracyrecord component
-