def get_decomp(self, method='MDS', **kwargs): optioncheck(method, ['MDS', 'spectral']) cl = Clustering(self.dm) if method == 'MDS': return cl.MDS_decomp() if method == 'spectral': return cl.spectral_decomp(**kwargs)