def test_TangentSpace_inversetransform(): """Test inverse transform of Tangent Space.""" covset = generate_cov(10, 3) ts = TangentSpace(metric='riemann') ts.fit(covset) t = ts.transform(covset) cov = ts.inverse_transform(t) assert_array_almost_equal(covset, cov)
def test_TangentSpace_transform(): """Test transform of Tangent Space.""" covset = generate_cov(10, 3) ts = TangentSpace(metric='riemann') ts.fit(covset) ts.transform(covset)
def test_TangentSpace_transform_with_ts_update(): """Test transform of Tangent Space with TSupdate.""" covset = generate_cov(10, 3) ts = TangentSpace(metric='riemann', tsupdate=True) ts.fit(covset) ts.transform(covset)
def test_TangentSpace_fit(): """Test Fit of Tangent Space.""" covset = generate_cov(10, 3) ts = TangentSpace(metric='riemann') ts.fit(covset)