Skip to content

Added kmeans exercise #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 6, 2025
Merged

Added kmeans exercise #4

merged 2 commits into from
Mar 6, 2025

Conversation

rik404
Copy link
Contributor

@rik404 rik404 commented Mar 3, 2025

Screenshot 2025-03-03 114803
Screenshot 2025-03-03 114815

Added kmeans as requested by @lvkale

@rik404 rik404 marked this pull request as draft March 3, 2025 18:41
@rik404 rik404 marked this pull request as ready for review March 3, 2025 18:43
@lvkale
Copy link
Contributor

lvkale commented Mar 3, 2025

I suggest adding a part D: change the random number generation so that you create K sets, with each set centered around a distinct coordinate (purported centroid), and see if your program is able to retrieve the clusters correctly. Use any method to restrict points around a centroid to within the 0.0:1.0 box, along each dimension.

@ericjbohm ericjbohm changed the title Addeded kmeans excercise Added kmeans exercise Mar 3, 2025
@rik404
Copy link
Contributor Author

rik404 commented Mar 3, 2025

I suggest adding a part D: change the random number generation so that you create K sets, with each set centered around a distinct coordinate (purported centroid), and see if your program is able to retrieve the clusters correctly. Use any method to restrict points around a centroid to within the 0.0:1.0 box, along each dimension.

Done

@ericjbohm ericjbohm merged commit bbb9c58 into charmplusplus:master Mar 6, 2025
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.

4 participants