From b27bda9a399d1b7aa7573e3836a6bf99c0a4ab1d Mon Sep 17 00:00:00 2001 From: Scott Gigante Date: Wed, 11 Jul 2018 19:18:59 -0400 Subject: [PATCH] test inverse transform columns on no pca --- test/test_data.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_data.py b/test/test_data.py index 508732b..6907821 100644 --- a/test/test_data.py +++ b/test/test_data.py @@ -168,6 +168,9 @@ def test_inverse_transform_sparse_svd(): def test_inverse_transform_dense_no_pca(): G = build_graph(data, n_pca=None) + np.testing.assert_allclose(data[:, 5:7], + G.inverse_transform(G.data_nu, columns=[5, 6]), + atol=1e-12) assert(np.all(G.data == G.inverse_transform(G.data_nu))) assert_raises(ValueError, G.inverse_transform, G.data[:, 0]) assert_raises(ValueError, G.inverse_transform, G.data[:, None, :15])