From 7ec87e8e1fae28d75da734fd398f9818745e126d Mon Sep 17 00:00:00 2001 From: depial <91621102+depial@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:16:27 -0500 Subject: [PATCH] Update runtests.jl --- exercises/practice/perceptron/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/practice/perceptron/runtests.jl b/exercises/practice/perceptron/runtests.jl index d380d462..112dd2e5 100644 --- a/exercises/practice/perceptron/runtests.jl +++ b/exercises/practice/perceptron/runtests.jl @@ -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