Skip to content

Distance measure signature#17

Merged
AmitMY merged 23 commits intosign-language-processing:mainfrom
cleong110:distance_measure_signature
Mar 6, 2025
Merged

Distance measure signature#17
AmitMY merged 23 commits intosign-language-processing:mainfrom
cleong110:distance_measure_signature

Conversation

@cleong110
Copy link
Copy Markdown
Contributor

Following on from #16 , adding DistanceMeasure and its corresponding signature. Tested out PowerDistance as well.

Original implementation from https://github.com/sign-language-processing/pose-evaluation/pull/4/files#diff-659180695d72a834de58010e799dfe4ae805a36f40897d5dfab91fb3320838b8 needed tweaking to work with masked arrays. This one gives expected results. For example, if a point is masked, it correctly substitutes in the default value as expected.

Also set it up so you can easily calculate all the pointwise distances, then sum(), or mean() or otherwise aggregate() them.

I had thought of creating an AggregationStrategy class, but I think it might not be necessary

@AmitMY any thoughts/suggestions?

Copy link
Copy Markdown
Contributor

@AmitMY AmitMY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still minor comments. realistically, did not give a deep review to this modification.

@AmitMY AmitMY merged commit 362466e into sign-language-processing:main Mar 6, 2025
1 of 2 checks passed
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