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?
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 usingself._distance_from_weights
, which uses Euclidean distance. Wouldn’t it be more consistent to compute BMUs usingself._activation_distance
instead since that is the distance metric used during training?