Skip to content

Commit 158825f

Browse files
geoffroylecontedpo
andcommitted
Apply suggestions from code review
Co-authored-by: Dominique <dominique.orban@gmail.com>
1 parent 2075f4a commit 158825f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

examples/demo-svm.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Random
22
using LinearAlgebra
33
using ProximalOperators, ShiftedProximalOperators, RegularizedProblems
4-
using NLPModels, NLPModelsModifiers #ReverseADNLSModels
4+
using NLPModels, NLPModelsModifiers
55
using RegularizedOptimization
66
using DataFrames
77
using MLDatasets
@@ -121,14 +121,13 @@ function demo_svm()
121121
# btrain = b[train_ind]
122122
# Atrain = A[train_ind,:]'
123123

124-
nlp_train, nls_train, sol_train = RegularizedProblems.svm_train_model()#Atrain, btrain) #
125-
nlp_test, nls_test, sol_test = RegularizedProblems.svm_test_model()#Atest, btest)
124+
nlp_train, nls_train, sol_train = RegularizedProblems.svm_train_model()
125+
nlp_test, nls_test, sol_test = RegularizedProblems.svm_test_model()
126126
nlp_train = LSR1Model(nlp_train)
127127
λ = 1e-1
128128
h = RootNormLhalf(λ)
129129
χ = NormLinf(1.0)
130130

131-
132131
demo_solver(nlp_train, nls_train, sol_train, nlp_test, nls_test, sol_test, h, χ, "lhalf-linf")
133132
end
134133

0 commit comments

Comments
 (0)