Skip to content

Reformat the gaussian conditional sampler #366

Merged
lionelkusch merged 50 commits intomind-inria:mainfrom
lionelkusch:PR_gaussian_reformat
Oct 15, 2025
Merged

Reformat the gaussian conditional sampler #366
lionelkusch merged 50 commits intomind-inria:mainfrom
lionelkusch:PR_gaussian_reformat

Conversation

@lionelkusch
Copy link
Copy Markdown
Collaborator

I reformat the Gaussian estimation of knockoff in the format of classes, as conditional sampling.
I moved all the conditional samplers into statistical_tool.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.38%. Comparing base (319b433) to head (43be183).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #366      +/-   ##
==========================================
- Coverage   99.43%   99.38%   -0.06%     
==========================================
  Files          22       20       -2     
  Lines        1247     1140     -107     
==========================================
- Hits         1240     1133     -107     
  Misses          7        7              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@bthirion bthirion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for this refactoring. I have two relatively minor comments.

Comment thread src/hidimstat/statistical_tools/gaussian_distribution.py Outdated
Comment thread test/statistical_tools/test_gaussian_distribution.py Outdated
Copy link
Copy Markdown
Collaborator

@jpaillard jpaillard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I agree that having both samplers implemented as classes makes sense.

Comment thread src/hidimstat/statistical_tools/gaussian_knockoffs.py Outdated
Comment thread test/statistical_tools/test_gaussian_knockoffs.py
Comment thread src/hidimstat/statistical_tools/gaussian_knockoffs.py
Comment thread src/hidimstat/statistical_tools/gaussian_knockoffs.py
Copy link
Copy Markdown
Collaborator

@jpaillard jpaillard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it limits extra work to integrate the test in this PR rather than having to fix something in an upcoming one. I made a suggestion for the tests.

Comment thread test/statistical_tools/test_gaussian_knockoffs.py Outdated
Copy link
Copy Markdown
Collaborator

@bthirion bthirion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR is almost ready to merge

Comment thread src/hidimstat/statistical_tools/gaussian_knockoffs.py Outdated
Comment thread src/hidimstat/statistical_tools/gaussian_knockoffs.py Outdated
Comment thread test/statistical_tools/test_gaussian_knockoffs.py Outdated
Comment thread test/statistical_tools/test_gaussian_knockoffs.py
Comment thread test/statistical_tools/test_gaussian_knockoffs.py
lionelkusch and others added 3 commits September 5, 2025 11:16
Co-authored-by: bthirion <bertrand.thirion@inria.fr>
jpaillard
jpaillard previously approved these changes Sep 5, 2025
Copy link
Copy Markdown
Collaborator

@bthirion bthirion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a bit of fine tuning.

Comment thread test/statistical_tools/test_gaussian_knockoffs.py
Comment thread test/statistical_tools/test_gaussian_knockoffs.py Outdated
Comment thread test/statistical_tools/test_gaussian_knockoffs.py
Comment thread test/statistical_tools/test_gaussian_knockoffs.py
Comment thread test/statistical_tools/test_gaussian_knockoffs.py
Comment thread docs/src/user_guide.rst
Comment thread src/hidimstat/statistical_tools/gaussian_knockoffs.py Outdated
Comment thread src/hidimstat/statistical_tools/gaussian_knockoffs.py Outdated
Comment thread src/hidimstat/statistical_tools/gaussian_knockoffs.py Outdated
Comment thread src/hidimstat/statistical_tools/gaussian_knockoffs.py Outdated
Comment thread test/statistical_tools/test_gaussian_knockoffs.py
Copy link
Copy Markdown
Collaborator

@bthirion bthirion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given #488, I have no further comments than @jpaillard's ones.

lionelkusch and others added 6 commits October 15, 2025 11:07
Co-authored-by: Joseph Paillard <joseph.paillard@inria.fr>
Co-authored-by: Joseph Paillard <joseph.paillard@inria.fr>
Co-authored-by: Joseph Paillard <joseph.paillard@inria.fr>
Co-authored-by: Joseph Paillard <joseph.paillard@inria.fr>
Copy link
Copy Markdown
Collaborator

@jpaillard jpaillard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the changes

@lionelkusch lionelkusch merged commit 56e107a into mind-inria:main Oct 15, 2025
24 checks passed
@lionelkusch lionelkusch deleted the PR_gaussian_reformat branch October 15, 2025 09:30
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.

3 participants