Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
depial authored Feb 23, 2024
1 parent 5ac2eec commit 7ec87e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/perceptron/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ end

function population(n, bound)
v = !iszero(n % 10)
x, y, b = rand(-bound:bound), rand(-bound:bound)*vertical, rand(-bound÷2:bound÷2)v
b, x, y = rand(-bound÷2:bound÷2), rand(-bound:bound), rand(-bound:bound)v
y_intercept = -b ÷ (iszero(y) ? 1 : y)
points, labels, hyperplane = [], [], [b, x, y]
while n > 0
Expand Down

0 comments on commit 7ec87e8

Please sign in to comment.