-
Notifications
You must be signed in to change notification settings - Fork 159
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
Add example notebook for using aeon distances with sklearn clusterers #2511
base: main
Are you sure you want to change the base?
Add example notebook for using aeon distances with sklearn clusterers #2511
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Thank you for contributing to
|
Dear maintainers, Clustering Overview |
hi, thanks for this, we will take a look |
Please refer to the links in my comment of the corresponding issue. |
- Removed "metric=..." details from TOC and introduction. - Renamed "Loading Data" to "Example Dataset." - Deleted redundant Introduction section.
"For a comprehensive overview of all available distance metrics in aeon, see the aeon distances API reference."
"AgglomerativeClustering is, as the name suggests, an agglomerative approach that works by merging clusters bottom-up." Clarified Supported Linkage Methods: Included the supported linkage methods (single, complete, average, weighted) for precomputed distance matrices.
…subtract from 1, ensuring proper preservation of distance distribution.
…istances.ipynb) in the Clustering Overview under Clustering Notebooks.
Thank you for the guidance! I have added a reference in the Please let me know if there are additional updates or adjustments required! |
this is failing the tests currently, please click on details to see why and resolve. |
Could you add a link to your new notebook from the Clustering-with-sklearn.cluster section of the |
…version consistency.
… and avoid confusion.
…cluster section of sklearn_distances.ipynb.
Inserted the required reference in the Clustering-with-sklearn.cluster section of sklearn_distances.ipynb. Please advise if any further refinements are necessary. |
I think, we also miss a link to this notebook from https://aeon-toolkit--2511.org.readthedocs.build/en/2511/examples.html#clustering |
Added the missing link to the new notebook in the Clustering section of examples.md. Please let me know if any further changes are needed! |
Reference Issues/PRs
Fixes #1241
What does this implement/fix? Explain your changes.
This pull request introduces a new Jupyter Notebook: sklearn_clustering_with_aeon_distances.ipynb. The notebook demonstrates how to integrate aeon's distance metrics with scikit-learn clustering algorithms. It includes:
Hierarchical Clustering: Using AgglomerativeClustering with metric="precomputed".
Density-Based Clustering: Using DBSCAN and OPTICS with metric="precomputed".
Spectral Clustering: Using SpectralClustering with affinity="precomputed" and the inverse of the distance matrix as the similarity matrix.
This addition enhances the clustering documentation, showing how to combine aeon’s distance metrics with widely-used scikit-learn clusterers.
Does your contribution introduce a new dependency? If yes, which one?
No new dependencies introduced.
Any other comments?
The notebook has been tested locally, and all cells execute without errors.
A reference to this notebook has been added to the clustering section of the documentation.
PR checklist
For all contributions
For new estimators and functions
__maintainer__
at the top of relevant files and want to be contacted regarding its maintenance. Unmaintained files may be removed. This is for the full file, and you should not add yourself if you are just making minor changes or do not want to help maintain its contents.For developers with write access