def test_eigenvectors_0_br(self):
     W = np.eye(4)
     in_labels = ['a', 'b', 'c', 'd']
     W_br = np.array([[0.9, 1.0], [-0.1, 0.1], [-0.1, 0.1], [-0.1, 0.1]])
     plt.eigenvectors(W[:, 0].reshape((4, 1)),
                      W_br=W_br,
                      in_labels=in_labels,
                      out_label='data')
Esempio n. 2
0
 def test_eigenvectors_2_br(self):
     W = np.eye(4)
     in_labels = ['a','b','c','d']
     W_br = np.array([[0.9,1.0,-0.1,0.1,-0.1,0.1],
                     [-0.1,0.1,0.9,1.0,-0.1,0.1],
                     [-0.1,0.1,-0.1,0.1,0.9,1.0],
                     [-0.1,0.1,-0.1,0.1,-0.1,0.1]])
     plt.eigenvectors(W[:,:3].reshape((4,3)), W_br=W_br, in_labels=in_labels, out_label='data')
 def test_eigenvectors_3_br(self):
     W = np.eye(4)
     in_labels = ['a', 'b', 'c', 'd']
     W_br = np.array([[0.9, 1.0, -0.1, 0.1, -0.1, 0.1, -0.1, 0.1],
                      [-0.1, 0.1, 0.9, 1.0, -0.1, 0.1, -0.1, 0.1],
                      [-0.1, 0.1, -0.1, 0.1, 0.9, 1.0, -0.1, 0.1],
                      [-0.1, 0.1, -0.1, 0.1, -0.1, 0.1, 0.9, 1.0]])
     plt.eigenvectors(W, W_br=W_br, in_labels=in_labels, out_label='data')
Esempio n. 4
0
 def test_eigenvectors_3_br(self):
     W = np.eye(4)
     in_labels = ['a','b','c','d']
     W_br = np.array([[0.9,1.0,-0.1,0.1,-0.1,0.1,-0.1,0.1],
                     [-0.1,0.1,0.9,1.0,-0.1,0.1,-0.1,0.1],
                     [-0.1,0.1,-0.1,0.1,0.9,1.0,-0.1,0.1],
                     [-0.1,0.1,-0.1,0.1,-0.1,0.1,0.9,1.0]])
     plt.eigenvectors(W, W_br=W_br, in_labels=in_labels, out_label='data')
Esempio n. 5
0
 def test_eigenvectors_3_br(self):
     W = np.eye(4)
     in_labels = ["a", "b", "c", "d"]
     W_br = np.array(
         [
             [0.9, 1.0, -0.1, 0.1, -0.1, 0.1, -0.1, 0.1],
             [-0.1, 0.1, 0.9, 1.0, -0.1, 0.1, -0.1, 0.1],
             [-0.1, 0.1, -0.1, 0.1, 0.9, 1.0, -0.1, 0.1],
             [-0.1, 0.1, -0.1, 0.1, -0.1, 0.1, 0.9, 1.0],
         ]
     )
     plt.eigenvectors(W, W_br=W_br, in_labels=in_labels, out_label="data")
Esempio n. 6
0
 def test_eigenvectors_3(self):
     W = np.eye(4)
     plt.eigenvectors(W)
Esempio n. 7
0
 def test_eigenvectors_2(self):
     W = np.eye(4)
     plt.eigenvectors(W[:,:3].reshape((4,3)))
Esempio n. 8
0
 def test_eigenvectors_1(self):
     W = np.eye(4)
     plt.eigenvectors(W[:,:2].reshape((4,2)))
Esempio n. 9
0
 def test_eigenvectors_0(self):
     W = np.eye(4)
     plt.eigenvectors(W[:,0].reshape((4,1)))
Esempio n. 10
0
 def test_eigenvectors_3_labels(self):
     W = np.eye(4)
     in_labels = ["a", "b", "c", "d"]
     plt.eigenvectors(W, in_labels=in_labels, out_label="data")
 def test_eigenvectors_3(self):
     W = np.eye(4)
     plt.eigenvectors(W)
 def test_eigenvectors_2(self):
     W = np.eye(4)
     plt.eigenvectors(W[:, :3].reshape((4, 3)))
 def test_eigenvectors_1(self):
     W = np.eye(4)
     plt.eigenvectors(W[:, :2].reshape((4, 2)))
 def test_eigenvectors_0(self):
     W = np.eye(4)
     plt.eigenvectors(W[:, 0].reshape((4, 1)))
Esempio n. 15
0
 def test_eigenvectors_1_br(self):
     W = np.eye(4)
     in_labels = ["a", "b", "c", "d"]
     W_br = np.array([[0.9, 1.0, -0.1, 0.1], [-0.1, 0.1, 0.9, 1.0], [-0.1, 0.1, -0.1, 0.1], [-0.1, 0.1, -0.1, 0.1]])
     plt.eigenvectors(W[:, :2].reshape((4, 2)), W_br=W_br, in_labels=in_labels, out_label="data")
Esempio n. 16
0
 def test_eigenvectors_2_labels(self):
     W = np.eye(4)
     in_labels = ['a','b','c','d']
     plt.eigenvectors(W[:,:3].reshape((4,3)), in_labels=in_labels, out_label='data')
Esempio n. 17
0
 def test_eigenvectors_3_labels(self):
     W = np.eye(4)
     in_labels = ['a','b','c','d']
     plt.eigenvectors(W, in_labels=in_labels, out_label='data')
 def test_eigenvectors_2_labels(self):
     W = np.eye(4)
     in_labels = ['a', 'b', 'c', 'd']
     plt.eigenvectors(W[:, :3].reshape((4, 3)),
                      in_labels=in_labels,
                      out_label='data')
 def test_eigenvectors_3_labels(self):
     W = np.eye(4)
     in_labels = ['a', 'b', 'c', 'd']
     plt.eigenvectors(W, in_labels=in_labels, out_label='data')
Esempio n. 20
0
 def test_eigenvectors_2_labels(self):
     W = np.eye(4)
     in_labels = ["a", "b", "c", "d"]
     plt.eigenvectors(W[:, :3].reshape((4, 3)), in_labels=in_labels, out_label="data")