File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,3 @@ optf1 = OptimizationFunction(loss, AutoSparseForwardDiff())
61
61
prob1 = OptimizationProblem (optf1, rand (5 ), data)
62
62
sol1 = solve (prob1, OptimizationOptimisers. Adam (), maxiters = 1000 , callback = callback)
63
63
@test sol1. objective < l0
64
-
65
- # Test Sophia with ComponentArrays + Enzyme (shadow generation fix)
66
- using ComponentArrays
67
- x0_comp = ComponentVector (a = 0.0 , b = 0.0 )
68
- rosenbrock_comp (x, p = nothing ) = (1 - x. a)^ 2 + 100 * (x. b - x. a^ 2 )^ 2
69
-
70
- optf_sophia = OptimizationFunction (rosenbrock_comp, AutoEnzyme ())
71
- prob_sophia = OptimizationProblem (optf_sophia, x0_comp)
72
- res_sophia = solve (prob_sophia, Optimization. Sophia (η= 0.01 , k= 5 ), maxiters = 50 )
73
- @test res_sophia. objective < rosenbrock_comp (x0_comp) # Test optimization progress
74
- @test res_sophia. retcode == Optimization. SciMLBase. ReturnCode. Success
You can’t perform that action at this time.
0 commit comments