Skip to content

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

@Joao-Paulo-Silva

Description

@Joao-Paulo-Silva

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.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions