You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They can also be paired into a *Regularized Nonlinear Least Squares Model* if $f(x) = \tfrac{1}{2} \|F(x)\|^2$ for some residual $F: \mathbb{R}^n \to \mathbb{R}^m$, in the case of the **LM** and **LMTR** solvers.
89
89
90
90
```julia
91
-
reg_nls =RegularizedNLSModel(f, h)
91
+
reg_nls =RegularizedNLSModel(F, h)
92
92
```
93
93
94
94
RegularizedProblems.jl also provides a set of instances commonly used in data science and in nonsmooth optimization, where several choices of $f$ can be paired with various regularizers.
@@ -116,7 +116,7 @@ Random.seed!(1234)
116
116
model, nls_model, _ = RegularizedProblems.svm_train_model() # Build SVM model
117
117
f =LSR1Model(model) # L-SR1 Hessian approximation
118
118
λ =1.0# Regularization parameter
119
-
h =RootNormLhalf(λ) # Nonsmooth term
119
+
h =RootNormLhalf(λ) # Nonsmooth term
120
120
reg_nlp =RegularizedNLPModel(f, h) # Regularized problem
We compare **TR**, **R2N**, **LM** and **LMTR** from our library on the SVM problem.
130
130
131
131
The table reports the convergence status of each solver, the number of evaluations of $f$, the number of evaluations of $\nabla f$, the number of proximal operator evaluations, the elapsed time and the final objective value.
132
-
We use limited-memory SR1 Hessian approximations.
132
+
For TR and R2N, we use limited-memory SR1 Hessian approximations.
0 commit comments