Record Class ICA.Options
java.lang.Object
java.lang.Record
smile.ica.ICA.Options
- Record Components:
contrast- the contrast function which is capable of separating or extracting independent sources from a linear mixture. It must be a non-quadratic non-linear function that has second-order derivative.maxIter- the maximum number of iterations.tol- the tolerance of convergence test.
- Enclosing class:
ICA
public static record ICA.Options(DifferentiableFunction contrast, int maxIter, double tol)
extends Record
ICA hyperparameters.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Options(DifferentiableFunction contrast, int maxIter) Constructor.Options(DifferentiableFunction contrast, int maxIter, double tol) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncontrast()Returns the value of thecontrastrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxIter()Returns the value of themaxIterrecord component.static ICA.Optionsof(Properties props) Returns the options from properties.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
Constructor. -
Options
Constructor.- Parameters:
contrast- the contrast function which is capable of separating or extracting independent sources from a linear mixture. It must be a non-quadratic non-linear function that has second-order derivative.maxIter- the maximum number of iterations.
-
Options
Constructor.- Parameters:
contrast- the name of contrast function, "LogCosh" or "Gaussian".maxIter- the maximum number of iterations.
-
-
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.
- Throws:
ReflectiveOperationException- if fail to create contrast function.
-
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. -
contrast
-
maxIter
-
tol
-