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

Release 1.0.0.a6 #75

Merged
merged 15 commits into from
Feb 15, 2024
Merged

Release 1.0.0.a6 #75

merged 15 commits into from
Feb 15, 2024

Conversation

rmnldwg
Copy link
Owner

@rmnldwg rmnldwg commented Feb 15, 2024

No description provided.

The `assign_params()` method did not return any unused keyword arguments
The micro mod and growth parameters of the trinary unilateral model are
now shared by default.

Related: #72
The unilateral attributes `is_micro_mod_shared` and `is_growth_shared`
are now handled by the bilateral model as well.

Fixes: #72
Previously, setting the `max_time` attribute did not change the diagnose
time distributions and might have therefore created weird situations.
Setting the `max_time` is therefore now forbidden.
I noticed the `is_micro_mod_shared` and `is_growth_shared` attributes
are only used when setting params via keyword arguments. And at that
point, checking if the gobal parameters are present in the kwargs is
sufficient. So, I removed them entirely.

Fixes: #72
When loading patient data, the `mapping` argument, to convert from the
T-stages reported in the data to those the user wants to use in the
model, may now be either a dictionary or a function.
The `data` and `load_data_kwargs` are removed from the `likelihood()`
method arguments. The most common use case is anyways to preload the
patient data. This applies to both the uni- and bilateral llh.

In turn, an argument `for_t_stage` was added. It may be used to specify
one particular T-stage for which to compute the likelihood. If it is
omitted, the llh is computed as normally.

This commit also fixes an error in the Bayesian network implementation.
Previously, it called the wrong diagnose matrices. Now, it correctly
computes the BN llh if no T-stage is specified and only that of the
given T-stage if it _is_ provided.

BREAKING CHANGE: `data` and `load_data_kwargs` removed from
`likelihood()` method.
@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2024

Codecov Report

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

Comparison is base (b2e5c8a) 81.43% compared to head (aa90be8) 81.96%.

Files Patch % Lines
lymph/models/bilateral.py 53.84% 6 Missing ⚠️
lymph/models/unilateral.py 83.87% 5 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
+ Coverage   81.43%   81.96%   +0.53%     
==========================================
  Files           7        7              
  Lines        1298     1320      +22     
==========================================
+ Hits         1057     1082      +25     
+ Misses        241      238       -3     

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

@rmnldwg rmnldwg merged commit c31ae8b into main Feb 15, 2024
2 checks passed
@rmnldwg rmnldwg deleted the release-1.0.0.a6 branch February 15, 2024 14:10
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.

None yet

2 participants