Record Class OMP.Options
java.lang.Object
java.lang.Record
smile.cs.OMP.Options
- Record Components:
sparsity- the target sparsityk(maximum number of non-zero components). The algorithm terminates oncekatoms have been selected, unless the residual tolerance is reached first.tol- residual tolerance. The algorithm stops early if‖residual‖₂ / ‖y‖₂ < tol.
- Enclosing class:
OMP
Hyperparameters for OMP.
-
Constructor Summary
Constructors -
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.static OMP.Optionsof(Properties props) Creates options from properties.intsparsity()Returns the value of thesparsityrecord component.doubletol()Returns the value of thetolrecord component.Returns properties for persistence.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Options
public Options(int sparsity, double tol) Constructs options.
-
-
Method Details
-
toProperties
-
of
Creates options from properties.- Parameters:
props- the properties.- 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
sparsity
-
tol
-