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
ConstructorDescriptionMetrics
(double step, double trainLoss, double trainMeanTokenAccuracy, double validLoss, double validMeanTokenAccuracy, double fullValidLoss, double fullValidMeanTokenAccuracy) Creates an instance of aMetrics
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.double
Returns the value of thefullValidLoss
record component.double
Returns the value of thefullValidMeanTokenAccuracy
record component.final int
hashCode()
Returns a hash code value for this object.double
step()
Returns the value of thestep
record component.final String
toString()
Returns a string representation of this record class.double
Returns the value of thetrainLoss
record component.double
Returns the value of thetrainMeanTokenAccuracy
record component.double
Returns the value of thevalidLoss
record component.double
Returns the value of thevalidMeanTokenAccuracy
record component.
-
Constructor Details
-
Metrics
public Metrics(double step, double trainLoss, double trainMeanTokenAccuracy, double validLoss, double validMeanTokenAccuracy, double fullValidLoss, double fullValidMeanTokenAccuracy) Creates an instance of aMetrics
record class.- Parameters:
step
- the value for thestep
record componenttrainLoss
- the value for thetrainLoss
record componenttrainMeanTokenAccuracy
- the value for thetrainMeanTokenAccuracy
record componentvalidLoss
- the value for thevalidLoss
record componentvalidMeanTokenAccuracy
- the value for thevalidMeanTokenAccuracy
record componentfullValidLoss
- the value for thefullValidLoss
record componentfullValidMeanTokenAccuracy
- the value for thefullValidMeanTokenAccuracy
record 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 thestep
record component.- Returns:
- the value of the
step
record component
-
trainLoss
public double trainLoss()Returns the value of thetrainLoss
record component.- Returns:
- the value of the
trainLoss
record component
-
trainMeanTokenAccuracy
public double trainMeanTokenAccuracy()Returns the value of thetrainMeanTokenAccuracy
record component.- Returns:
- the value of the
trainMeanTokenAccuracy
record component
-
validLoss
public double validLoss()Returns the value of thevalidLoss
record component.- Returns:
- the value of the
validLoss
record component
-
validMeanTokenAccuracy
public double validMeanTokenAccuracy()Returns the value of thevalidMeanTokenAccuracy
record component.- Returns:
- the value of the
validMeanTokenAccuracy
record component
-
fullValidLoss
public double fullValidLoss()Returns the value of thefullValidLoss
record component.- Returns:
- the value of the
fullValidLoss
record component
-
fullValidMeanTokenAccuracy
public double fullValidMeanTokenAccuracy()Returns the value of thefullValidMeanTokenAccuracy
record component.- Returns:
- the value of the
fullValidMeanTokenAccuracy
record component
-