Record Class BayesianOptimization.Trial
java.lang.Object
java.lang.Record
smile.hpo.BayesianOptimization.Trial
- Record Components:
parameters- the hyperparameter configuration evaluated.value- the objective function value.iteration- the iteration index (1-based).
- All Implemented Interfaces:
Serializable
- Enclosing class:
BayesianOptimization
public static record BayesianOptimization.Trial(Properties parameters, double value, int iteration)
extends Record
implements Serializable
An individual trial evaluation in the optimization process.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTrial(Properties parameters, double value, int iteration) Creates an instance of aTrialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationrecord component.Returns the value of theparametersrecord component.toString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Trial
Creates an instance of aTrialrecord class.- Parameters:
parameters- the value for theparametersrecord componentvalue- the value for thevaluerecord componentiteration- the value for theiterationrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
value
-
iteration
-