Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

add kmeans clustering example #734

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 7 commits into from
Feb 24, 2025
Merged

add kmeans clustering example #734

merged 7 commits into from
Feb 24, 2025

Conversation

clewis7
Copy link
Member

@clewis7 clewis7 commented Feb 18, 2025

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
Copy link
Member Author

clewis7 commented Feb 18, 2025

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
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
Copy link
Member Author

clewis7 commented Feb 20, 2025

image

Idk if the linear interpolation looks that much better imo

@clewis7
Copy link
Member Author

clewis7 commented Feb 20, 2025

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
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
Copy link
Member Author

clewis7 commented Feb 21, 2025

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
Copy link
Member Author

clewis7 commented Feb 21, 2025

@kushalkolar should be gtg

@kushalkolar
Copy link
Member

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

docs/source/conf.py Outdated Show resolved Hide resolved
examples/machine_learning/kmeans.py Outdated Show resolved Hide resolved
examples/machine_learning/kmeans.py Outdated Show resolved Hide resolved
examples/machine_learning/kmeans.py Outdated Show resolved Hide resolved
@kushalkolar kushalkolar merged commit bd131f9 into main Feb 24, 2025
51 of 52 checks passed
@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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.