Beispiel #1
0
 def test_duplicated_data_in_fit_transform(self):
     X = np.random.randn(100, 2)
     d = DataInMemory([X, X])
     tica = api.tica(data=d, lag=1, dim=1)
     out1 = tica.get_output()
     out2 = tica.fit_transform([X, X])
     np.testing.assert_array_almost_equal(out1, out2)
Beispiel #2
0
 def test_fit_transform(self):
     X = np.random.randn(100, 2)
     tica = _internal_tica(1, 1)
     out = tica.fit_transform(X)
     np.testing.assert_array_almost_equal(
         out,
         api.tica(data=X, lag=1, dim=1).get_output()[0])