Record Class BasisPursuit.Options
java.lang.Object
java.lang.Record
smile.cs.BasisPursuit.Options
- Record Components:
epsilon- the L2 constraint tolerance (‖Ax−y‖₂ ≤ ε). Use0for exact basis pursuit.mu- barrier update factor (μ > 1, e.g. 10). The barrier parametertis multiplied bymuat each outer iteration.cgtol- convergence tolerance for the inner CG solver.cgMaxIter- maximum CG iterations per Newton step.maxIter- maximum number of outer (Newton) iterations.tol- duality-gap tolerance; outer loop terminates when the surrogate duality gap satisfiesgap/|f| < tol.
- Enclosing class:
BasisPursuit
public static record BasisPursuit.Options(double epsilon, double mu, double cgtol, int cgMaxIter, int maxIter, double tol)
extends Record
Hyperparameters for the log-barrier interior-point solver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecgMaxIterrecord component.doublecgtol()Returns the value of thecgtolrecord component.doubleepsilon()Returns the value of theepsilonrecord 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.doublemu()Returns the value of themurecord component.static BasisPursuit.Optionsof(Properties props) Creates options from properties.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(double epsilon, double mu, double cgtol, int cgMaxIter, int maxIter, double tol) Constructs options with defaults. -
Options
public Options()Default 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. -
epsilon
-
mu
-
cgtol
-
cgMaxIter
-
maxIter
-
tol
-