Skip to content

Instantly share code, notes, and snippets.

@remore
Created October 4, 2016 14:09
Show Gist options
  • Save remore/084b9170d1ddad9490c7d3c9664b2f3f to your computer and use it in GitHub Desktop.
Save remore/084b9170d1ddad9490c7d3c9664b2f3f to your computer and use it in GitHub Desktop.
jl = VirtualModule.new(:julia=>["Clustering"])
r = jl.Clustering.kmeans(jl.rand(5, 1000), 20, maxiter:200, display: :iter)
p jl.Clustering.assignments(r) # [3, 13, 2, 7, 15, 12, 10, ... 13, 1, 8]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment