Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
jameschapman19 committed Nov 13, 2023
2 parents 969f253 + d86e644 commit a68e4a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cca_zoo/linear/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Linear CCA methods
"""
from ._gcca import GCCA
from ._gradient import CCA_EY, CCA_GHA,CCA_SVD, PLS_EY, PLSStochasticPower
from ._gradient import CCA_EY, CCA_GHA, CCA_SVD, PLS_EY, PLSStochasticPower
from ._grcca import GRCCA
from ._iterative import (
PLS_ALS,
Expand Down
11 changes: 10 additions & 1 deletion tests/test_gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@
import pytest
from sklearn.utils import check_random_state
from torch import manual_seed

manual_seed(42)
from cca_zoo.linear import CCA, PLS,CCA_SVD,CCA_GHA, CCA_EY, PLS_EY, PLSStochasticPower
from cca_zoo.linear import (
CCA,
PLS,
CCA_SVD,
CCA_GHA,
CCA_EY,
PLS_EY,
PLSStochasticPower,
)

n = 50
rng = check_random_state(0)
Expand Down

0 comments on commit a68e4a2

Please sign in to comment.