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 Oct 26, 2023
2 parents 92b66e7 + f595a41 commit 0df0d10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cca_zoo/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class BaseModel(BaseEstimator, MultiOutputMixin, TransformerMixin):
"""

weights_=None
weights_ = None

def __init__(
self,
Expand Down Expand Up @@ -275,9 +275,9 @@ def loadings_(self) -> List[np.ndarray]:
Loadings for each view.
"""
check_is_fitted(self, attributes=["weights_"])
loadings=[
weights / np.linalg.norm(weights, axis=0) for weights in self.weights_
]
loadings = [
weights / np.linalg.norm(weights, axis=0) for weights in self.weights_
]
return loadings

def explained_variance(self, views: Iterable[np.ndarray]) -> List[np.ndarray]:
Expand Down

0 comments on commit 0df0d10

Please sign in to comment.