Skip to content

Bug: Inconsistency between internal metrics and SciPy due to implicit normalization.#55

Merged
Joao-Paulo-Silva merged 3 commits intoAIS-Package:developfrom
Joao-Paulo-Silva:fix/issues-54
Feb 16, 2026
Merged

Bug: Inconsistency between internal metrics and SciPy due to implicit normalization.#55
Joao-Paulo-Silva merged 3 commits intoAIS-Package:developfrom
Joao-Paulo-Silva:fix/issues-54

Conversation

@Joao-Paulo-Silva
Copy link
Member

The aisp.utils.distance module implements cityblock and minkowski with normalization, dividing the result by the number of dimensions n. aisp also uses scipy.spatial.distance.cdist, and SciPy follows the classic mathematical definition of metrics, returning cumulative distances without dimension-specific normalization.
This difference creates an inconsistency that can cause problems in models generated with these distances.

@Joao-Paulo-Silva Joao-Paulo-Silva merged commit fa0d235 into AIS-Package:develop Feb 16, 2026
4 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.

Bug: Inconsistency between internal metrics and SciPy due to implicit normalization.

1 participant