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

Commit 4e99559

Browse files
Update least_squares.jl
Fix residual definition in test
1 parent 20185ba commit 4e99559

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
@@ -8,7 +8,7 @@ y_target = true_function(x, θ_true)
88

99
function loss_function(θ, p)
1010
= true_function(p, θ)
11-
return abs2.(.- y_target)
11+
return.- y_target
1212
end
1313

1414
θ_init = θ_true .+ 0.1

0 commit comments

Comments
 (0)