Skip to content

Commit 8fd0601

Browse files
st--devmotion
andauthored
Update examples/support-vector-machine/script.jl
Co-authored-by: David Widmann <[email protected]>
1 parent 9397bf7 commit 8fd0601

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/support-vector-machine/script.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ n1 = n2 = 50;
2323

2424
angle1 = range(0, π; length=n1)
2525
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)
26+
X1 = [cos.(angle1) sin.(angle1)] .+ 0.1 .* randn.()
27+
X2 = [1 .- cos.(angle2) 1 .- sin.(angle2) .- 0.5] .+ 0.1 .* randn.()
2828
X = [X1; X2]
2929
x_train = RowVecs(X)
3030
y_train = vcat(fill(-1, n1), fill(1, n2));

0 commit comments

Comments
 (0)