def test_unconnected_warning(self):
     n = [50, 50]
     p = [[1, 0], [0, 1]]
     A = sbm(n, p)
     with self.assertWarns(UserWarning):
         lse = LaplacianSpectralEmbed()
         lse.fit(A)
 def test_different_forms(self):
     f = np.array([[1, 2], [2, 1]])
     lse = LaplacianSpectralEmbed(form="I-DAD")
Beispiel #3
0
 def test_no_directed(self):
     f = np.array([[1, 2], [0, 1]])
     lse = LaplacianSpectralEmbed()
     with self.assertRaises(ValueError):
         lse.fit(f)