Record Class BayesianOptimization.Result
java.lang.Object
java.lang.Record
smile.hpo.BayesianOptimization.Result
- Record Components:
bestParameters- the best hyperparameter configuration found.bestValue- the best objective function value achieved.trials- the full history of evaluated trials.
- All Implemented Interfaces:
Serializable
- Enclosing class:
BayesianOptimization
public static record BayesianOptimization.Result(Properties bestParameters, double bestValue, List<BayesianOptimization.Trial> trials)
extends Record
implements Serializable
Result of Bayesian hyperparameter optimization.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResult(Properties bestParameters, double bestValue, List<BayesianOptimization.Trial> trials) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbest()Returns the best hyperparameter configuration.Returns the value of thebestParametersrecord component.doubleReturns the value of thebestValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.trials()Returns the value of thetrialsrecord component.doublevalue()Returns the best objective function value.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
bestParameters- the value for thebestParametersrecord componentbestValue- the value for thebestValuerecord componenttrials- the value for thetrialsrecord component
-
-
Method Details
-
best
Returns the best hyperparameter configuration.- Returns:
- the best hyperparameter configuration.
-
value
public double value()Returns the best objective function value.- Returns:
- the best objective function value.
-
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. -
bestParameters
Returns the value of thebestParametersrecord component.- Returns:
- the value of the
bestParametersrecord component
-
bestValue
-
trials
-