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 aClassificationValidationsrecord 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> ClassificationValidations<M> of(List<ClassificationValidation<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
-
ClassificationValidations
public ClassificationValidations(List<ClassificationValidation<M>> rounds, ClassificationMetrics avg, ClassificationMetrics std) Creates an instance of aClassificationValidationsrecord class.
-
-
Method Details
-
of
Factory method.- Type Parameters:
M- the 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
-