def test_cp_params(): coeff = 'not_defined' cp = EuclideanCechPersistence(coeff=coeff) with pytest.raises(TypeError): cp.fit_transform(X)
def test_cp_transform(): cp = EuclideanCechPersistence() assert_almost_equal(cp.fit_transform(X), X_cp_res)