Package smile.validation
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 aRegressionValidations
record class. -
Method Summary
Modifier and TypeMethodDescriptionavg()
Returns the value of theavg
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static <M> RegressionValidations
<M> of
(List<RegressionValidation<M>> rounds) Factory method.rounds()
Returns the value of therounds
record component.std()
Returns the value of thestd
record 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 aRegressionValidations
record class.
-
-
Method Details
-
of
Factory method.- Parameters:
rounds
- the validation metrics of multiple rounds.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of therounds
record component.- Returns:
- the value of the
rounds
record component
-
avg
Returns the value of theavg
record component.- Returns:
- the value of the
avg
record component
-
std
Returns the value of thestd
record component.- Returns:
- the value of the
std
record component
-