Record Class AdaBoost.TrainingStatus
java.lang.Object
java.lang.Record
smile.classification.AdaBoost.TrainingStatus
- Record Components:
tree- the tree index, starting at 1.weightedError- the weight error of the curren decision tree.metrics- the optional validation metrics if test data is provided.
- Enclosing class:
AdaBoost
public static record AdaBoost.TrainingStatus(int tree, double weightedError, ClassificationMetrics metrics)
extends Record
Training status per tree.
-
Constructor Summary
ConstructorsConstructorDescriptionTrainingStatus(int tree, double weightedError, 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.doubleReturns the value of theweightedErrorrecord component.
-
Constructor Details
-
TrainingStatus
Creates an instance of aTrainingStatusrecord class.- Parameters:
tree- the value for thetreerecord componentweightedError- the value for theweightedErrorrecord componentmetrics- the value for themetricsrecord component
-
-
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
-
weightedError
public double weightedError()Returns the value of theweightedErrorrecord component.- Returns:
- the value of the
weightedErrorrecord component
-
metrics
-