'SVD method to compute eigenvalues and eigenvecs'

def _compute_using_svd(self):

    x = self.transformed_data
    (u, s, v) = np.linalg.svd(x)
    self.eigenvals = (s ** 2.0)
    self.eigenvecs = v.T
