Skip to content

Commit

Permalink
Update test/least_squares.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Nov 3, 2023
1 parent f63aaae commit b6d38d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/least_squares.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function loss_function(θ, p)
return abs2.(ŷ .- y_target)
end

θ_init = θ_true .+ randn!(similar(θ_true)) * 0.1
θ_init = θ_true .+ 0.1
prob_oop = NonlinearLeastSquaresProblem{false}(loss_function, θ_init, x)
sol = solve(prob_oop, SimpleNewtonRaphson())
sol = solve(prob_oop, SimpleGaussNewton())
Expand Down

0 comments on commit b6d38d7

Please sign in to comment.