Record Class RegressionValidations<M>
java.lang.Object
java.lang.Record
smile.validation.RegressionValidations<M>
- Type Parameters:
M- The regression model type.- Record Components:
rounds- The multiple round validations.avg- The average of metrics.std- The standard deviation of metrics.
- All Implemented Interfaces:
Serializable
public record RegressionValidations<M>(List<RegressionValidation<M>> rounds, RegressionMetrics avg, RegressionMetrics std)
extends Record
implements Serializable
Regression model validation results.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRegressionValidations(List<RegressionValidation<M>> rounds, RegressionMetrics avg, RegressionMetrics std) Creates an instance of aRegressionValidationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionavg()Returns the value of theavgrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <M> RegressionValidations<M> of(List<RegressionValidation<M>> rounds) Factory method.rounds()Returns the value of theroundsrecord component.std()Returns the value of thestdrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
RegressionValidations
public RegressionValidations(List<RegressionValidation<M>> rounds, RegressionMetrics avg, RegressionMetrics std) Creates an instance of aRegressionValidationsrecord class.
-
-
Method Details
-
of
Factory method.- Type Parameters:
M- the regression model type.- Parameters:
rounds- the validation metrics of multiple rounds.- Returns:
- the validation object.
-
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). -
rounds
-
avg
-
std
-