Package smile.validation
Record Class ClassificationValidations<M>
java.lang.Object
java.lang.Record
smile.validation.ClassificationValidations<M>
- Type Parameters:
M
- the 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 ClassificationValidations<M>(List<ClassificationValidation<M>> rounds, ClassificationMetrics avg, ClassificationMetrics std)
extends Record
implements Serializable
Classification model validation results.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClassificationValidations
(List<ClassificationValidation<M>> rounds, ClassificationMetrics avg, ClassificationMetrics std) Creates an instance of aClassificationValidations
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> ClassificationValidations
<M> of
(List<ClassificationValidation<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
-
ClassificationValidations
public ClassificationValidations(List<ClassificationValidation<M>> rounds, ClassificationMetrics avg, ClassificationMetrics std) Creates an instance of aClassificationValidations
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
-