Skip to content

Quantization always uses Euclidean distance #192

@ArlexMR

Description

@ArlexMR

Hi, thanks for this great SOM implementation.

I need to train a SOM using a custom distance function (specifically, Dynamic Time Warping from the tslearn package). However, I’ve noticed that within the self.quantization method, BMUs are computed using self._distance_from_weights, which uses Euclidean distance. Wouldn’t it be more consistent to compute BMUs using self._activation_distance instead since that is the distance metric used during training?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions