From df02b9cecd49cccaa4f49f2e9389b96eee0920ba Mon Sep 17 00:00:00 2001 From: jameschapman19 Date: Thu, 19 Oct 2023 18:48:36 +0100 Subject: [PATCH] Validation set for Gradient Based Models woohoo --- cca_zoo/linear/_gradient/_svd.py | 20 ++++++++++---------- test/test_probabilistic.py | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cca_zoo/linear/_gradient/_svd.py b/cca_zoo/linear/_gradient/_svd.py index a8d3f396..fae31de1 100644 --- a/cca_zoo/linear/_gradient/_svd.py +++ b/cca_zoo/linear/_gradient/_svd.py @@ -1,10 +1,10 @@ -from cca_zoo.deep.objectives import CCA_SVDLoss, PLS_SVDLoss -from cca_zoo.linear._gradient._ey import CCA_EY - - -class CCA_SVD(CCA_EY): - objective = CCA_SVDLoss() - - -class PLS_SVD(CCA_EY): - objective = PLS_SVDLoss() +# from cca_zoo.deep.objectives import CCA_SVDLoss, PLS_SVDLoss +# from cca_zoo.linear._gradient._ey import CCA_EY +# +# +# class CCA_SVD(CCA_EY): +# objective = CCA_SVDLoss() +# +# +# class PLS_SVD(CCA_EY): +# objective = PLS_SVDLoss() diff --git a/test/test_probabilistic.py b/test/test_probabilistic.py index ee4cc0cf..456d52b5 100644 --- a/test/test_probabilistic.py +++ b/test/test_probabilistic.py @@ -16,7 +16,7 @@ def setup_data(): random_state=seed, structure="identity", ) - X, Y = data.sample(100) + X, Y = data.sample(500) X -= X.mean(axis=0) Y -= Y.mean(axis=0) return X, Y, data.joint_cov