← 返回首页
add kmeans clustering example by clewis7 · Pull Request #734 · fastplotlib/fastplotlib · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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 commented Feb 18, 2025
edited
Loading

Copy link
Copy Markdown
Member

Simple kmeans clustering example using MNIST dataset

kmeans.mp4

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

clewis7 commented Feb 18, 2025
edited
Loading

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

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 commented Feb 20, 2025

Copy link
Copy Markdown
Member Author

Idk if the linear interpolation looks that much better imo

clewis7 commented Feb 20, 2025
edited
Loading

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

Copy link
Copy Markdown
Member

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 commented Feb 21, 2025
edited
Loading

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 commented Feb 21, 2025

Copy link
Copy Markdown
Member Author

@kushalkolar should be gtg

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 Show resolved Hide resolved
Comment thread examples/machine_learning/kmeans.py Outdated Show resolved Hide resolved
Comment thread examples/machine_learning/kmeans.py Outdated Show resolved Hide resolved
Comment thread examples/machine_learning/kmeans.py Outdated Show resolved Hide resolved
kushalkolar merged commit bd131f9 into main Feb 24, 2025
kushalkolar deleted the mnist-example branch April 18, 2025 07:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.