From dba44787e6cb25c61301cdc7031e0acab9c72854 Mon Sep 17 00:00:00 2001 From: Niclas Rieger <45175997+nicrie@users.noreply.github.com> Date: Mon, 2 Sep 2024 17:54:29 +0200 Subject: [PATCH] fix: alpha paramter in Hilbert CCA (#213) --- xeofs/cross/cca.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xeofs/cross/cca.py b/xeofs/cross/cca.py index 524777f..210b038 100644 --- a/xeofs/cross/cca.py +++ b/xeofs/cross/cca.py @@ -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. @@ -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,