Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate tgcca #76

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

Integrate tgcca #76

wants to merge 17 commits into from

Conversation

GFabien
Copy link
Collaborator

@GFabien GFabien commented Dec 15, 2023

No description provided.

* Instead of dividing by std which might be null, we divide by the max between std and machine precision for floats
* Since some variables may be null, we always divide by the frobenius norm and not by the number of variables once scaled
Since we do not remove constant variables anymore we do no longer need a specific strategy for sampling bootstrap samples.
I chose to scale arrays by unfolding them, scaling the resulting matrices and fold them back. It may not be the adapted way to scale a tensor. It will be interesting to have a string argument for the scale parameter to allow choosing the best strategy.
comp_orth = TRUE yields orthogonal canonical components but comp_orth = FALSE does not lead yet to orthogonal canonical vectors
* Important change in this version: tau and sparsity are converted to matrices directly in select_analysis
@GFabien GFabien marked this pull request as draft January 11, 2024 16:15
@codecov-commenter
Copy link

codecov-commenter commented Jan 12, 2024

Codecov Report

Attention: 192 lines in your changes are missing coverage. Please review.

Comparison is base (5233a8c) 94.39% compared to head (f715238) 90.56%.
Report is 2 commits behind head on main.

❗ Current head f715238 differs from pull request most recent head a9ade60. Consider uploading reports for the commit a9ade60 to get more accurate results

Files Patch % Lines
R/block_update.R 8.33% 55 Missing ⚠️
R/block_init.R 24.00% 38 Missing ⚠️
R/block.R 69.23% 16 Missing ⚠️
R/estimate_separable_covariance.R 0.00% 14 Missing ⚠️
R/rgcca_inner_loop.R 75.00% 14 Missing ⚠️
R/rgcca_outer_loop.R 81.81% 14 Missing ⚠️
R/block_postprocess.R 38.09% 13 Missing ⚠️
R/format_output.R 46.66% 8 Missing ⚠️
R/check_blocks.r 95.45% 4 Missing ⚠️
R/checks.R 90.00% 4 Missing ⚠️
... and 6 more

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #76      +/-   ##
==========================================
- Coverage   94.39%   90.56%   -3.83%     
==========================================
  Files          83       82       -1     
  Lines        3319     3212     -107     
==========================================
- Hits         3133     2909     -224     
- Misses        186      303     +117     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants