def bmu_ind_to_xy(self, bmu_ind):
        rows = self.codebook.mapsize[0]
        cols = self.codebook.mapsize[1]

        # bmu should be an integer between 0 to no_nodes
        out = np.zeros((bmu_ind.shape[0], 3))
        out[:, 2] = bmu_ind
        out[:, 0] = rows-1-bmu_ind / cols
        out[:, 0] = bmu_ind / cols
        out[:, 1] = bmu_ind % cols

        return out.astype(int)
Translates a best matching unit index to the corresponding matrix x,y coordinates
dataset/ETHPy150Open sevamoo/SOMPY/sompy.py/SOM.bmu_ind_to_xy