Record Class RandomForest.TrainingStatus
java.lang.Object
java.lang.Record
smile.classification.RandomForest.TrainingStatus
- Record Components:
tree- the tree index, starting at 1.metrics- the validation metrics on out-of-bag samples.
- Enclosing class:
RandomForest
public static record RandomForest.TrainingStatus(int tree, ClassificationMetrics metrics)
extends Record
Training status per tree.
-
Constructor Summary
ConstructorsConstructorDescriptionTrainingStatus(int tree, 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.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
-
metrics
-