File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed
Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ using LaTeXStrings
1616include (" comparison-config.jl" )
1717using . ComparisonConfig: CFG, CFG2
1818
19- include (" Bench-utils.jl" )
20- using . BenchUtils
21-
2219# ############################
2320# ===== Helper utils ====== #
2421# ############################
@@ -39,14 +36,6 @@ function ensure_qn(model, which::Symbol)
3936 error (" Unknown QN: $which (expected :LBFGS or :LSR1)" )
4037end
4138
42- # Close a PrettyTables Markdown string by adding a bottom rule
43- function close_markdown_table (table_str:: AbstractString )
44- lines = split (String (table_str), ' \n ' )
45- isempty (lines) && return table_str
46- sep = length (lines) >= 2 ? lines[2 ] : repeat (" -" , 10 )
47- push! (lines, sep)
48- return join (lines, ' \n ' )
49- end
5039
5140# ############################
5241# ======= SVM bench ======= #
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Random.seed!(1234)
66model, nls_model, _ = RegularizedProblems. svm_train_model () # Build SVM model
77f = LSR1Model (model) # L-SR1 Hessian approximation
88λ = 1.0 # Regularization parameter
9- h = RootNormLhalf (1.0 ) # Nonsmooth term
9+ h = RootNormLhalf (λ) # Nonsmooth term
1010reg_nlp = RegularizedNLPModel (f, h) # Regularized problem
1111solver = R2NSolver (reg_nlp) # Choose solver
1212stats = RegularizedExecutionStats (reg_nlp)
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ Random.seed!(1234)
144144model, nls_model, _ = RegularizedProblems. svm_train_model () # Build SVM model
145145f = LSR1Model (model) # L-SR1 Hessian approximation
146146λ = 1.0 # Regularization parameter
147- h = RootNormLhalf (1.0 ) # Nonsmooth term
147+ h = RootNormLhalf (λ ) # Nonsmooth term
148148reg_nlp = RegularizedNLPModel (f, h) # Regularized problem
149149solver = R2NSolver (reg_nlp) # Choose solver
150150stats = RegularizedExecutionStats (reg_nlp)
You can’t perform that action at this time.
0 commit comments