Record Class RandomForest.Model
java.lang.Object
java.lang.Record
smile.regression.RandomForest.Model
- Record Components:
tree- The regression tree.metrics- The validation metrics on out-of-bag samples.
- All Implemented Interfaces:
Serializable, Comparable<RandomForest.Model>
- Enclosing class:
RandomForest
public static record RandomForest.Model(RegressionTree tree, RegressionMetrics metrics)
extends Record
implements Serializable, Comparable<RandomForest.Model>
The base model.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModel(RegressionTree tree, RegressionMetrics metrics) Creates an instance of aModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal 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.tree()Returns the value of thetreerecord component.
-
Constructor Details
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<RandomForest.Model>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
tree
-
metrics
-