Skip to content

add kmeans clustering example - #734

Merged
kushalkolar merged 7 commits into
mainfrom
mnist-example
Feb 24, 2025
Merged

add kmeans clustering example#734
kushalkolar merged 7 commits into
mainfrom
mnist-example

Conversation

@clewis7

@clewis7 clewis7 commented Feb 18, 2025

Copy link
Copy Markdown
Member

Simple kmeans clustering example using MNIST dataset

kmeans.mp4

@clewis7
clewis7 requested a review from kushalkolar as a code owner February 18, 2025 22:51
@clewis7

clewis7 commented Feb 18, 2025

Copy link
Copy Markdown
Member Author

Weird doc build failure, not something that I added

Also, based on their docs, a list type for that config should be accepted

they did just do a release...

update: yep, def has to do with the release; updated my local and now am getting the warning
https://github.com/sphinx-doc/sphinx/pull/13146/files

@kushalkolar

Copy link
Copy Markdown
Member

In this case using linear interpolation for images looks better, and you can also add an interactive covariance matrix, see if the scatter is more informative in 3D

@clewis7

clewis7 commented Feb 20, 2025

Copy link
Copy Markdown
Member Author

image

Idk if the linear interpolation looks that much better imo

@clewis7

clewis7 commented Feb 20, 2025

Copy link
Copy Markdown
Member Author

scatter looks pretty much the same in 3d

I think interactive cov is fine to add for the gallery demo but is prob too much for medium article to explain

@kushalkolar

Copy link
Copy Markdown
Member

image

Idk if the linear interpolation looks that much better imo

I think this looks better! Easier to see the numbers

I think interactive cov is fine to add for the gallery demo but is prob too much for medium article to explain

I think it shows off the cool features of fpl though, it shows that covariance is a good measure in this case.

@clewis7

clewis7 commented Feb 21, 2025

Copy link
Copy Markdown
Member Author

I think it shows off the cool features of fpl though, it shows that covariance is a good measure in this case.

The covariance matrix is not that informative in this case, we already have an example with covariance I think for this demo it is okay to just keep it to kmeans (show people something different)

mnist_cov.mp4

@clewis7

clewis7 commented Feb 21, 2025

Copy link
Copy Markdown
Member Author

@kushalkolar should be gtg

@kushalkolar

Copy link
Copy Markdown
Member

No idea what's up with the docs deploy failure, I will try in a diff PR later

Comment thread docs/source/conf.py Outdated
Comment thread examples/machine_learning/kmeans.py Outdated
Comment thread examples/machine_learning/kmeans.py Outdated
Comment thread examples/machine_learning/kmeans.py Outdated
@kushalkolar
kushalkolar merged commit bd131f9 into main Feb 24, 2025
@kushalkolar
kushalkolar deleted the mnist-example branch April 18, 2025 07:25
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