From 3ca4ab72a0dd3f4e1ebbcf8b176bfd6c31cd1ff0 Mon Sep 17 00:00:00 2001 From: farhadrclass Date: Mon, 12 Dec 2022 18:29:54 +0000 Subject: [PATCH] :robot: Format .jl files --- old/problems/NN_CIFAR10.jl | 1 - old/testParam.jl | 1 - src/SR2.jl | 11 ++++++++++- src/main.jl | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/old/problems/NN_CIFAR10.jl b/old/problems/NN_CIFAR10.jl index 516554b..0d7ee35 100644 --- a/old/problems/NN_CIFAR10.jl +++ b/old/problems/NN_CIFAR10.jl @@ -24,4 +24,3 @@ trained_model = train_knetNLPmodel!( all_data = false, verbose = false, ) - diff --git a/old/testParam.jl b/old/testParam.jl index d4e081f..14fb7dc 100644 --- a/old/testParam.jl +++ b/old/testParam.jl @@ -64,4 +64,3 @@ # C = R2ParameterSet{R}(√eps(R), √eps(R), 0.1, 0.01, 0.1, 1.9, zero(R), 0.9) # with issues - diff --git a/src/SR2.jl b/src/SR2.jl index cd97c39..01b8abd 100644 --- a/src/SR2.jl +++ b/src/SR2.jl @@ -101,7 +101,16 @@ end kwargs..., ) where {T,V} solver = SR2Solver(nlp) - nlp_param = R2ParameterSet{T}(atol=atol, rtol=rtol, η1=η1, η2=η2, γ1=γ1, γ2=γ2, σmin=σmin, β = β) #(√eps(R), √eps(R), 0.1, 0.3, 1.1, 1.9, zero(R), 0.9) # TODO add the param here + nlp_param = R2ParameterSet{T}( + atol = atol, + rtol = rtol, + η1 = η1, + η2 = η2, + γ1 = γ1, + γ2 = γ2, + σmin = σmin, + β = β, + ) #(√eps(R), √eps(R), 0.1, 0.3, 1.1, 1.9, zero(R), 0.9) # TODO add the param here return SolverCore.solve!(solver, nlp_param, nlp; kwargs...) end diff --git a/src/main.jl b/src/main.jl index efbdea1..79733cd 100644 --- a/src/main.jl +++ b/src/main.jl @@ -58,4 +58,4 @@ include("models/lenet_mnist.jl") #TODO -# RENSET \ No newline at end of file +# RENSET