Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit b6d38d7

Browse files
Update test/least_squares.jl
1 parent f63aaae commit b6d38d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/least_squares.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function loss_function(θ, p)
1111
return abs2.(ŷ .- y_target)
1212
end
1313

14-
θ_init = θ_true .+ randn!(similar(θ_true)) * 0.1
14+
θ_init = θ_true .+ 0.1
1515
prob_oop = NonlinearLeastSquaresProblem{false}(loss_function, θ_init, x)
1616
sol = solve(prob_oop, SimpleNewtonRaphson())
1717
sol = solve(prob_oop, SimpleGaussNewton())

0 commit comments

Comments
 (0)