Skip to content

Commit

Permalink
update text
Browse files Browse the repository at this point in the history
  • Loading branch information
yoninazarathy committed Jul 3, 2020
1 parent 1b3b8af commit e2f7b1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 9_chapter/hClustering.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using RDatasets, Clustering, Random, LinearAlgebra, Plots; pyplot()
Random.seed!(0)

xclara = dataset("cluster", "xclara")
n,_ = size(xclara)
dataPoints = [convert(Array{Float64,1},xclara[i,:]) for i in 1:n]
df = dataset("cluster", "xclara")
n,_ = size(df)
dataPoints = [convert(Array{Float64,1},df[i,:]) for i in 1:n]
shuffle!(dataPoints)
D = [norm(pt1 - pt2) for pt1 in dataPoints, pt2 in dataPoints]

Expand Down

0 comments on commit e2f7b1e

Please sign in to comment.