Record Class DeterministicAnnealing.Options
java.lang.Object
java.lang.Record
smile.clustering.DeterministicAnnealing.Options
- Record Components:
kmax- the maximum number of clusters.alpha- the temperature T is decreasing as T = T * alpha. alpha has to be in (0, 1).maxIter- the maximum number of iterations at each temperature.tol- the tolerance of convergence test.splitTol- the tolerance to split a cluster.controller- the optional training controller.
- Enclosing class:
DeterministicAnnealing
public static record DeterministicAnnealing.Options(int kmax, double alpha, int maxIter, double tol, double splitTol, IterativeAlgorithmController<AlgoStatus> controller)
extends Record
Deterministic annealing hyperparameters.
-
Constructor Summary
ConstructorsConstructorDescriptionOptions(int kmax, double alpha, int maxIter) Constructor.Options(int kmax, double alpha, int maxIter, double tol, double splitTol, IterativeAlgorithmController<AlgoStatus> controller) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondoublealpha()Returns the value of thealpharecord component.Returns the value of thecontrollerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intkmax()Returns the value of thekmaxrecord component.intmaxIter()Returns the value of themaxIterrecord component.of(Properties props) Returns the options from properties.doublesplitTol()Returns the value of thesplitTolrecord component.doubletol()Returns the value of thetolrecord component.Returns the persistent set of hyperparameters.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Options
public Options(int kmax, double alpha, int maxIter, double tol, double splitTol, IterativeAlgorithmController<AlgoStatus> controller) Constructor. -
Options
public Options(int kmax, double alpha, int maxIter) Constructor.- Parameters:
kmax- the maximum number of clusters.alpha- the temperature T is decreasing as T = T * alpha. alpha has to be in (0, 1).maxIter- the maximum number of iterations at each temperature.
-
-
Method Details
-
toProperties
Returns the persistent set of hyperparameters.- Returns:
- the persistent set.
-
of
Returns the options from properties.- Parameters:
props- the hyperparameters.- Returns:
- the options.
-
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. -
kmax
-
alpha
-
maxIter
-
tol
-
splitTol
-
controller
Returns the value of thecontrollerrecord component.- Returns:
- the value of the
controllerrecord component
-