Skip to content

Conversation

@Tyler-Hilbert
Copy link

The machine_learning/kmeans.cpp example has a comment which says n is the number of features and d is the feature size (the code is correct, but the comment explaining it mixes up the values).
It may not seem like a big deal, but I found this example when working on my own project with different dimensions, and it caused me a headache debugging why my dimensions were wrong when using your example since I had flipped N and D.

Checklist

  • [ x] Rebased on latest master
  • [ x] Code compiles
  • [ x] Tests pass
  • [ x] Functions added to unified API
  • [ x] Functions documented

@christophe-murphy christophe-murphy merged commit a4420e1 into arrayfire:master Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants