Repository navigation
66 feature visualize clusters method - #128
Open
idanmoradarthas wants to merge 3 commits into
Open
idanmoradarthas wants to merge 3 commits into
idanmoradarthas wants to merge 3 commits into
Conversation
- Introduced `plot_clusters` and `plot_clusters_plotly` functions for 2D scatter plots of clustering results, with options for PCA, t-SNE, and UMAP dimensionality reduction. - Added support for UMAP through the optional `data-science-utils[umap]` installation. - Updated documentation in `README.md`, `CHANGELOG.md`, and `SKILL.md` to include usage examples and installation instructions for new features. - Enhanced tests for cluster plotting functions to ensure robust validation of functionality and error handling.
…sualization features - Removed the "Unreleased" section from CHANGELOG.md. - Documented the addition of `plot_clusters` and `plot_clusters_plotly` functions for 2D scatter plots of clustering results. - Included details about the optional `data-science-utils[umap]` for UMAP support in cluster visualization.
9 tasks
This branch has not been deployed
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #66
Adds cluster visualization utilities to the
unsupervisedmodule so users can quickly evaluate clustering results on a 2D scatter plot (with optional centroids and dimensionality reduction).What’s included
plot_clusters(matplotlib) – static 2D scatter plot of clustering resultsplot_clusters_plotly– interactive Plotly version with hover infopip install data-science-utils[umap])README.md,docs/source/unsupervised.rst,SKILL.md,CHANGELOG.md)[umap]extraMotivation (from #66)
Unsupervised models (KMeans, DBSCAN, etc.) produce cluster labels, but interpreting them usually requires boilerplate plotting code. These helpers reduce that friction and integrate visualization directly into the modeling workflow.
Example usage