Kmeans problem

You forgot a s in zeros when initializing distances (see my answer in your issue).


  • you should generally post the code here (on discourse) if you want a bigger chance of people not ignoring your post
  • use ```julia in order to highlight code with julia on Github (here it’s done automatically)
  • remove visualisation stuff etc which are not directly related to your problem
  • you may want to consider the package NearestNeighbours.jl

PS: Tamas would have done it eventually so also please consider Please read: make it easier to help you

1 Like