Record Class GradientTreeBoost.TrainingStatus
java.lang.Object
java.lang.Record
smile.classification.GradientTreeBoost.TrainingStatus
- Record Components:
tree- the tree index, starting at 1.loss- the current loss function value.metrics- the optional validation metrics if test data is provided.
- Enclosing class:
GradientTreeBoost
public static record GradientTreeBoost.TrainingStatus(int tree, double loss, ClassificationMetrics metrics)
extends Record
Training status per tree.
-
Constructor Summary
ConstructorsConstructorDescriptionTrainingStatus(int tree, double loss, ClassificationMetrics metrics) Creates an instance of aTrainingStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleloss()Returns the value of thelossrecord component.metrics()Returns the value of themetricsrecord component.final StringtoString()Returns a string representation of this record class.inttree()Returns the value of thetreerecord component.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
tree
-
loss
-
metrics
-