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

Fix FAMoS termination; remove other switching methods #68

Merged
merged 11 commits into from
Dec 17, 2023

Conversation

dilpath
Copy link
Member

@dilpath dilpath commented Nov 30, 2023

The FAMoS candidate space returns no models, if one of its inner methods (e.g. the forward method) provides no models. Calibration tools (e.g. pyPESTO) then terminate the model selection, because no models were provided. However, at this point, FAMoS should switch to another method.

This switching is now implemented, in petab_select/ui.py.

The other changes are to remove the other switching methods (ForwardAndBackwardCandidateSpace and BidirectionalCandidateSpace), because these methods are probably not used by anyone, and would suffer from the same issue currently. StopIterations would need to be implemented in them, similarly to FamosCandidateSpace, when the search should truly terminate.

@dilpath dilpath requested a review from Doresic November 30, 2023 13:22
Copy link
Collaborator

@Doresic Doresic left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks

@codecov-commenter
Copy link

codecov-commenter commented Dec 16, 2023

Codecov Report

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

Comparison is base (f9a2a87) 60.95% compared to head (6dae816) 57.58%.

Files Patch % Lines
petab_select/ui.py 5.88% 16 Missing ⚠️
petab_select/model.py 9.09% 10 Missing ⚠️
petab_select/criteria.py 20.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #68      +/-   ##
===========================================
- Coverage    60.95%   57.58%   -3.37%     
===========================================
  Files           14       14              
  Lines         1534     1490      -44     
===========================================
- Hits           935      858      -77     
- Misses         599      632      +33     

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

@dilpath dilpath mentioned this pull request Dec 16, 2023
@dilpath dilpath merged commit f9a06d4 into develop Dec 17, 2023
3 checks passed
@dilpath dilpath deleted the fix_famos_termination_remove_other_switching_methods branch December 17, 2023 17:06
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