diff --git a/.gitignore b/.gitignore index 9fb7292..91b8f5c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ # Personal .vscode/ +# Test related to CCA +tests/models/test_cca_solution.py # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/docs/_autosummary/xeofs.models.ComplexEOF.rst b/docs/_autosummary/xeofs.models.ComplexEOF.rst index dad48cf..5cdb7ee 100644 --- a/docs/_autosummary/xeofs.models.ComplexEOF.rst +++ b/docs/_autosummary/xeofs.models.ComplexEOF.rst @@ -24,6 +24,7 @@ ~ComplexEOF.explained_variance ~ComplexEOF.explained_variance_ratio ~ComplexEOF.fit + ~ComplexEOF.fit_transform ~ComplexEOF.get_params ~ComplexEOF.inverse_transform ~ComplexEOF.scores diff --git a/docs/_autosummary/xeofs.models.ComplexEOFRotator.rst b/docs/_autosummary/xeofs.models.ComplexEOFRotator.rst index 1f5267a..2fe12b8 100644 --- a/docs/_autosummary/xeofs.models.ComplexEOFRotator.rst +++ b/docs/_autosummary/xeofs.models.ComplexEOFRotator.rst @@ -24,6 +24,7 @@ ~ComplexEOFRotator.explained_variance ~ComplexEOFRotator.explained_variance_ratio ~ComplexEOFRotator.fit + ~ComplexEOFRotator.fit_transform ~ComplexEOFRotator.get_params ~ComplexEOFRotator.inverse_transform ~ComplexEOFRotator.scores diff --git a/docs/_autosummary/xeofs.models.ComplexMCA.rst b/docs/_autosummary/xeofs.models.ComplexMCA.rst index 92206b3..8dbc52d 100644 --- a/docs/_autosummary/xeofs.models.ComplexMCA.rst +++ b/docs/_autosummary/xeofs.models.ComplexMCA.rst @@ -33,6 +33,7 @@ ~ComplexMCA.singular_values ~ComplexMCA.squared_covariance ~ComplexMCA.squared_covariance_fraction + ~ComplexMCA.total_covariance ~ComplexMCA.transform diff --git a/docs/_autosummary/xeofs.models.ComplexMCARotator.rst b/docs/_autosummary/xeofs.models.ComplexMCARotator.rst index 518c069..61b4a59 100644 --- a/docs/_autosummary/xeofs.models.ComplexMCARotator.rst +++ b/docs/_autosummary/xeofs.models.ComplexMCARotator.rst @@ -33,6 +33,7 @@ ~ComplexMCARotator.singular_values ~ComplexMCARotator.squared_covariance ~ComplexMCARotator.squared_covariance_fraction + ~ComplexMCARotator.total_covariance ~ComplexMCARotator.transform diff --git a/docs/_autosummary/xeofs.models.EOF.rst b/docs/_autosummary/xeofs.models.EOF.rst index 07069dd..20b35dc 100644 --- a/docs/_autosummary/xeofs.models.EOF.rst +++ b/docs/_autosummary/xeofs.models.EOF.rst @@ -22,6 +22,7 @@ ~EOF.explained_variance ~EOF.explained_variance_ratio ~EOF.fit + ~EOF.fit_transform ~EOF.get_params ~EOF.inverse_transform ~EOF.scores diff --git a/docs/_autosummary/xeofs.models.EOFRotator.rst b/docs/_autosummary/xeofs.models.EOFRotator.rst index adcca8e..93c0df2 100644 --- a/docs/_autosummary/xeofs.models.EOFRotator.rst +++ b/docs/_autosummary/xeofs.models.EOFRotator.rst @@ -22,6 +22,7 @@ ~EOFRotator.explained_variance ~EOFRotator.explained_variance_ratio ~EOFRotator.fit + ~EOFRotator.fit_transform ~EOFRotator.get_params ~EOFRotator.inverse_transform ~EOFRotator.scores diff --git a/docs/_autosummary/xeofs.models.MCA.rst b/docs/_autosummary/xeofs.models.MCA.rst index 59a40b7..b8de506 100644 --- a/docs/_autosummary/xeofs.models.MCA.rst +++ b/docs/_autosummary/xeofs.models.MCA.rst @@ -29,6 +29,7 @@ ~MCA.singular_values ~MCA.squared_covariance ~MCA.squared_covariance_fraction + ~MCA.total_covariance ~MCA.transform diff --git a/docs/_autosummary/xeofs.models.MCARotator.rst b/docs/_autosummary/xeofs.models.MCARotator.rst index eabd0bc..4c604c0 100644 --- a/docs/_autosummary/xeofs.models.MCARotator.rst +++ b/docs/_autosummary/xeofs.models.MCARotator.rst @@ -29,6 +29,7 @@ ~MCARotator.singular_values ~MCARotator.squared_covariance ~MCARotator.squared_covariance_fraction + ~MCARotator.total_covariance ~MCARotator.transform diff --git a/docs/_autosummary/xeofs.models.OPA.rst b/docs/_autosummary/xeofs.models.OPA.rst index 478174a..4d029bd 100644 --- a/docs/_autosummary/xeofs.models.OPA.rst +++ b/docs/_autosummary/xeofs.models.OPA.rst @@ -22,6 +22,7 @@ ~OPA.decorrelation_time ~OPA.filter_patterns ~OPA.fit + ~OPA.fit_transform ~OPA.get_params ~OPA.inverse_transform ~OPA.scores diff --git a/docs/_autosummary/xeofs.validation.EOFBootstrapper.rst b/docs/_autosummary/xeofs.validation.EOFBootstrapper.rst index 902cc3a..8a68c2d 100644 --- a/docs/_autosummary/xeofs.validation.EOFBootstrapper.rst +++ b/docs/_autosummary/xeofs.validation.EOFBootstrapper.rst @@ -22,6 +22,7 @@ ~EOFBootstrapper.explained_variance ~EOFBootstrapper.explained_variance_ratio ~EOFBootstrapper.fit + ~EOFBootstrapper.fit_transform ~EOFBootstrapper.get_params ~EOFBootstrapper.inverse_transform ~EOFBootstrapper.scores diff --git a/docs/auto_examples/1eof/images/sphx_glr_plot_eeof_001.png b/docs/auto_examples/1eof/images/sphx_glr_plot_eeof_001.png new file mode 100644 index 0000000..a6f4eb7 Binary files /dev/null and b/docs/auto_examples/1eof/images/sphx_glr_plot_eeof_001.png differ diff --git a/docs/auto_examples/1eof/images/sphx_glr_plot_eeof_002.png b/docs/auto_examples/1eof/images/sphx_glr_plot_eeof_002.png new file mode 100644 index 0000000..e4d1037 Binary files /dev/null and b/docs/auto_examples/1eof/images/sphx_glr_plot_eeof_002.png differ diff --git a/docs/auto_examples/1eof/images/sphx_glr_plot_eeof_003.png b/docs/auto_examples/1eof/images/sphx_glr_plot_eeof_003.png new file mode 100644 index 0000000..4502176 Binary files /dev/null and b/docs/auto_examples/1eof/images/sphx_glr_plot_eeof_003.png differ diff --git a/docs/auto_examples/1eof/images/sphx_glr_plot_gwpca_001.png b/docs/auto_examples/1eof/images/sphx_glr_plot_gwpca_001.png new file mode 100644 index 0000000..14d3f63 Binary files /dev/null and b/docs/auto_examples/1eof/images/sphx_glr_plot_gwpca_001.png differ diff --git a/docs/auto_examples/1eof/images/sphx_glr_plot_gwpca_002.png b/docs/auto_examples/1eof/images/sphx_glr_plot_gwpca_002.png new file mode 100644 index 0000000..814f2f6 Binary files /dev/null and b/docs/auto_examples/1eof/images/sphx_glr_plot_gwpca_002.png differ diff --git a/docs/auto_examples/1eof/images/thumb/sphx_glr_plot_eeof_thumb.png b/docs/auto_examples/1eof/images/thumb/sphx_glr_plot_eeof_thumb.png new file mode 100644 index 0000000..8797ba3 Binary files /dev/null and b/docs/auto_examples/1eof/images/thumb/sphx_glr_plot_eeof_thumb.png differ diff --git a/docs/auto_examples/1eof/images/thumb/sphx_glr_plot_gwpca_thumb.png b/docs/auto_examples/1eof/images/thumb/sphx_glr_plot_gwpca_thumb.png new file mode 100644 index 0000000..b7a9a0f Binary files /dev/null and b/docs/auto_examples/1eof/images/thumb/sphx_glr_plot_gwpca_thumb.png differ diff --git a/docs/auto_examples/1eof/index.rst b/docs/auto_examples/1eof/index.rst index 3e89c05..7ecc9cd 100644 --- a/docs/auto_examples/1eof/index.rst +++ b/docs/auto_examples/1eof/index.rst @@ -12,6 +12,23 @@
The dataset we're using is found in the R package \n [mvoutlier](https://cran.r-project.org/web/packages/mvoutlier/mvoutlier.pdf). \n To access it, we'll employ the Python package \n [rpy2](https://rpy2.github.io/doc/latest/html/index.html) which facilitates \n interaction with R packages from within Python.
Presently, there's no support for ``xarray.Dataset`` lacking an explicit feature dimension. \n As a workaround, ``xarray.DataArray.to_array`` can be used to convert the ``Dataset`` to an ``DataArray``.
Bear in mind that GWPCA requires significant computational power.\n The ``xeofs`` implementation is optimized for CPU efficiency and is best suited \n for smaller to medium data sets. For more extensive datasets where parallel processing becomes essential,\n it's advisable to turn to the R package [GWmodel](https://cran.r-project.org/web/packages/GWmodel/GWmodel.pdf).\n This package harnesses CUDA to enable GPU-accelerated GWPCA for optimized performance.