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

Develop global refactoring #105

Open
wants to merge 86 commits into
base: main
Choose a base branch
from
Open

Develop global refactoring #105

wants to merge 86 commits into from

Conversation

judithabk6
Copy link
Owner

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jan 15, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 85.93750% with 81 lines in your changes missing coverage. Please review.

Project coverage is 85.19%. Comparing base (47f4ce9) to head (54a0a6c).

Files with missing lines Patch % Lines
src/med_bench/utils/decorators.py 23.68% 29 Missing ⚠️
src/med_bench/utils/utils.py 37.20% 27 Missing ⚠️
src/med_bench/estimation/mediation_mr.py 81.53% 12 Missing ⚠️
src/med_bench/estimation/base.py 93.38% 8 Missing ⚠️
src/med_bench/estimation/mediation_dml.py 91.83% 4 Missing ⚠️
..._bench/estimation/mediation_coefficient_product.py 96.77% 1 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #105      +/-   ##
==========================================
- Coverage   86.53%   85.19%   -1.34%     
==========================================
  Files           6       11       +5     
  Lines         750      662      -88     
==========================================
- Hits          649      564      -85     
+ Misses        101       98       -3     

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

@bthirion
Copy link
Collaborator

What is the status of this PR. Just need to fix the doc, then merge ?

Copy link
Collaborator

@houssamzenati houssamzenati left a comment

Choose a reason for hiding this comment

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

I have left minor reviews

docs/modules.rst Outdated
:members:
:undoc-members:
:show-inheritance:


nuisances
--------
utils
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure it is interesting to do a documentation about the utils module ?

Copy link
Owner Author

Choose a reason for hiding this comment

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

I would be happy to check some internal functions as a user. Here it is just to display the parameters the function takes etc, but ok... We will see in the doc refactor

from abc import ABCMeta, abstractmethod
import numpy as np
from sklearn import clone
from sklearn.model_selection import GridSearchCV
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this line


return self

# TODO : Enable any sklearn object as classifier or regressor
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove here as well

@judithabk6
Copy link
Owner Author

I have found an error in the tolerance threshold code test, it is fixed. It will affect your results and your threshold @houssamzenati

@judithabk6
Copy link
Owner Author

I have implemented all your fixes @houssamzenati

Copy link
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.

LGTM aside a small detail.

src/med_bench/estimation/mediation_dml.py Show resolved Hide resolved
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.

5 participants