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')
 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')
 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')
 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")
 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)))
 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)))
 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")
 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')
 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')
 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")