Skip to content

Commit

Permalink
fix: alpha paramter in Hilbert CCA (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicrie authored Sep 2, 2024
1 parent 76c4605 commit dba4478
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xeofs/cross/cca.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ class HilbertCCA(HilbertCPCCA, ComplexCCA):
This method solves the following optimization problem:
:math:`\\max_{q_x, q_y} \\left( q_x^T X^T Y q_y \\right)`
:math:`\\max_{q_x, q_y} \\left( q_x^H X^H Y q_y \\right)`
subject to the constraints:
:math:`q_x^T (X^TX) q_x = 1, \\quad q_y^T (Y^TY) q_y = 1`
:math:`q_x^H (X^HX) q_x = 1, \\quad q_y^H (Y^HY) q_y = 1`
where :math:`H` denotes the conjugate transpose and :math:`X` and :math:`Y`
are the augmented data matrices.
Expand Down Expand Up @@ -335,7 +335,7 @@ def __init__(
HilbertCPCCA.__init__(
self,
n_modes=n_modes,
alpha=[1.0, 1.0],
alpha=[0.0, 0.0],
standardize=standardize,
use_coslat=use_coslat,
check_nans=check_nans,
Expand Down

0 comments on commit dba4478

Please sign in to comment.