-
Notifications
You must be signed in to change notification settings - Fork 180
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
[DOC] Update Partitional clustering notebook #2483
[DOC] Update Partitional clustering notebook #2483
Conversation
I have addressed issue aeon-toolkit#1805 by updating the partitional_clustering notebook to include all the supported distance metrics.
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Thank you for contributing to
|
Hi @MatthewMiddlehurst @TonyBagnall, Thanks in advance for your feedback! |
View / edit / reply to this conversation on ReviewNB TonyBagnall commented on 2025-01-14T08:56:08Z not sure if it is just reviewnb, but Squared and ADTW seem to be on the same line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, could you just check the line break for ADTW?
Hi @TonyBagnall , I’ve double-checked the code and JSON structure, and everything seems fine. Here’s the relevant snippet for reference: "<ul>\n",
" <li>K-means, K-medoids supported distances:\n",
" <ul>\n",
" <li>Euclidean - parameter string 'euclidean'</li>\n",
" <li>Manhattan - parameter string 'manhattan'</li>\n",
" <li>Minkowski - parameter string 'minkowski'</li>\n",
" <li>Soft DTW - parameter string 'soft_dtw'</li>\n",
" <li>Shift Scale - parameter string 'shift_scale'</li>\n",
" <li>Squared - parameter string 'squared'</li>\n",
" <li>ADTW - parameter string 'adtw'</li>\n",
" <li>DTW - parameter string 'dtw'</li>\n",
" <li>DDTW - parameter string 'ddtw'</li>\n",
" <li>WDTW - parameter string 'wdtw'</li>\n",
" <li>WDDTW - parameter string 'wddtw'</li>\n",
" <li>LCSS - parameter string 'lcss'</li>\n",
" <li>ERP - parameter string 'erp'</li>\n",
" <li>EDR - parameter string 'edr'</li>\n",
" <li>MSM - parameter string 'msm'</li>\n",
" <li>TWE - parameter string 'twe'</li>\n",
" <li>SBD - parameter string 'sbd'</li>\n",
" </ul>\n",
" </li>\n",
"</ul>\n" The line break for ADTW looks correct here, but I noticed that in ReviewNB, there are formatting issues where some items appear on the same line as others. I’m not sure why this discrepancy is happening, as the code itself appears fine. Please let me know if you think there’s another aspect I should check! |
Hi @Akhil-Jasson, if you check on the docs (https://aeon-toolkit--2483.org.readthedocs.build/en/2483/examples/clustering/partitional_clustering.html) you'll see that there is an html tag floating around after the listing in |
Hi @baraline, thank you for pointing this out! If I’m not mistaken, the additional HTML tag you mentioned does not appear in my PR. I’ve reviewed the code, and everything seems to be correctly formatted on my end. Please let me know if there’s anything specific I might have missed! |
No problem, @baraline! Yes, I assume the additional tag is still present in the main branch. |
You are right, it is from the main branch and not your PR, could you also correct it while at it ? After that I think we'll be good to go |
Thanks for confirming, @baraline! I’ve already corrected the issue in my PR. Let me know if there’s anything else you’d like me to address! |
It is still present in your PR. You can see it on the generated docs at https://aeon-toolkit--2483.org.readthedocs.build/en/2483/examples/clustering/partitional_clustering.html. |
…hub.com/Akhil-Jasson/aeon into 1805-update-partial-clustering-notebook
Hi @baraline, Thanks a lot for pointing it out! I'm currently unable to identify the reason why the extra tag is appearing. I'll go through the entire notebook thoroughly to investigate further. If anyone happens to identify the cause, I would greatly appreciate the help! |
The only thing I would see causing this is It's weird as it doesn't appear when looking at the notebook directly, but when looking at the docs it appear ... If removing the |
I had added the comment tag while trying to figure out the issue, but it wasn’t present in the earlier commits. I’ll go ahead and remove the comment tag now. |
Investigated issue with additional </li> tag by using a comment tag. Reverted the comment tag as it is unnecessary.
Hi @baraline, great news, the additional tag seems to have disappeared! While I’m not entirely sure how it resolved itself, the tags were added later as part of my attempt to identify the issue. I’m glad it’s sorted now. Thanks a lot for your help! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our mistery tag still remains on the generated docs, so I'm as clueless as you are ... As the problem doesn't come from your PR as it exists on the main branch, I'll raise an issue about it. The line breaks Tony mentioned don't appear on the generated docs either, probably a reviewNB issue ?
The other additions are looking good, so we good to go, thanks !
Requested change are due to an issue on ReviewNB and don't appear on the generated docs
Hi @baraline, thank you for merging the PR and for your support throughout the process! I wanted to share that I’m planning to apply for GSoC this year, and I really enjoy working with Aeon! |
@all-contributors please add @Akhil-Jasson for docs |
I couldn't determine any contributions to add, did you specify any contributions? |
@all-contributors please add @Akhil-Jasson for docs |
I've put up a pull request to add @Akhil-Jasson! 🎉 |
I have addressed issue #1805 by updating the partitional_clustering notebook to include all the supported distance metrics.
Reference Issues/PRs
What does this implement/fix? Explain your changes.
Does your contribution introduce a new dependency? If yes, which one?
Any other comments?
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