From f2ea2995134a8a19fc844cc63969a448d6bc49d6 Mon Sep 17 00:00:00 2001 From: jameschapman19 Date: Mon, 9 Jan 2023 15:28:51 +0000 Subject: [PATCH] Making tol consistently refer to stopping criteria --- cca_zoo/test/test_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cca_zoo/test/test_models.py b/cca_zoo/test/test_models.py index 2cd95c50..b5aa705b 100644 --- a/cca_zoo/test/test_models.py +++ b/cca_zoo/test/test_models.py @@ -159,7 +159,7 @@ def test_pls(): pls = PLS(latent_dims=3) pls_als.fit((X, Y)) pls.fit((X, Y)) - assert np.allclose(np.abs(pls_als.weights[0]), np.abs(pls.weights[0]), rtol=1e-1) + assert np.allclose(pls_als.score((X,Y)), pls.score((X,Y)), rtol=1e-1) def test_weighted_GCCA_methods():