-
Notifications
You must be signed in to change notification settings - Fork 172
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
[ENH] Minkowski distance #904
[ENH] Minkowski distance #904
Conversation
Thank you for contributing to
|
Hello, sorry for the late reply. The people who are more familiar with distances are a bit busy at the moment. There appears to be an issue with your example, the output does not patch the expected https://github.com/aeon-toolkit/aeon/actions/runs/6869352045/job/18682151763?pr=904#step:6:399 |
Thanks for pointing it out! I will immediately correct it. |
him, thanks for this, we will look early next week @chrisholder |
Hi @akshatvishu sorry about the delay, people seem to still be busy. I will take a look at this later today. |
Hi @akshatvishu thanks for the contribution! Look great just a few more things to add so people can call your distance properly:
|
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.
Hi, the distance itself looks good. I see Chris left some comments for incorporating it into the module, which would be good to add.
I only have a few documentation comments.
It would be good to add the functions to docs/api_reference/distance.rst
(this one is more optional and can be dealt with in a separate PR).
- Integrated Minkowski distance into valid distances array in _distance.py. - Enhanced distance and pairwise_distance functions in _distance.py for Minkowski distance. - Updated docstring tables in _distance.py to reflect Minkowski distance addition. - Corrected docstring example for minkowski_pairwise_distance at _minkowski.py to correct format. - Removed the use of #noqa: E501 to skip code quality check at _minkowski_pairwise_distance function.
Hi @chrisholder and @MatthewMiddlehurst, |
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 for the changes. My bits seem done, adding the distances to the parts Chris suggested seems to have included it in a set of unit tests (which is now failing).
Do you know what the issue is @chrisholder? I can have a look at some point if not.
If you want, you can install the dev dependencies (i.e. pip install .[dev]
) and run the test suite locally using pytest
.
…ength of input arrays
[ENH] Some fixes for aeon-toolkit#904
Looks like the tests are passing now. Would you mind taking a look through @chrisholder just to make sure everything is still good before merging? |
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.
Great addition to the distance module thanks for the hard work!
hi, there is a minor conflict I introduced in another PR, easy to fix, just add manhattan.squared_distance. Ready to go in once thats fixed, thanks @akshatvishu |
I will resolve the conflict and merge this for the release. Thanks for the contribution @akshatvishu (and dealing with testing woes)! |
8393af7
Reference Issues/PRs
Fixes #484
What does this implement/fix? Explain your changes.
This PR introduces a new distance measure
minkowski_distance
.Any other comments?
PR checklist
For all contributions
For new estimators and functions
For developers with write access