We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9397bf7 commit 8fd0601Copy full SHA for 8fd0601
examples/support-vector-machine/script.jl
@@ -23,8 +23,8 @@ n1 = n2 = 50;
23
24
angle1 = range(0, π; length=n1)
25
angle2 = range(0, π; length=n2)
26
-X1 = [cos.(angle1) sin.(angle1)] .+ 0.1randn(n1, 2)
27
-X2 = [1 .- cos.(angle2) 1 .- sin.(angle2) .- 0.5] .+ 0.1randn(n2, 2)
+X1 = [cos.(angle1) sin.(angle1)] .+ 0.1 .* randn.()
+X2 = [1 .- cos.(angle2) 1 .- sin.(angle2) .- 0.5] .+ 0.1 .* randn.()
28
X = [X1; X2]
29
x_train = RowVecs(X)
30
y_train = vcat(fill(-1, n1), fill(1, n2));
0 commit comments