Skip to content

Parameter ensemble plot - #1574

Open
plakrisenko wants to merge 14 commits into
developfrom
parameter_ensemble_plot
Open

Parameter ensemble plot#1574
plakrisenko wants to merge 14 commits into
developfrom
parameter_ensemble_plot

Conversation

@plakrisenko

Copy link
Copy Markdown
Member

Visualization of parameter values included in the ensemble.

Comment thread pypesto/visualize/ensemble.py Outdated
Comment thread pypesto/visualize/ensemble.py Outdated
@codecov-commenter

codecov-commenter commented May 6, 2025

Copy link
Copy Markdown

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

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.35%. Comparing base (3614541) to head (5a7db4c).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1574   +/-   ##
========================================
  Coverage    84.35%   84.35%           
========================================
  Files          164      164           
  Lines        14756    14788   +32     
========================================
+ Hits         12447    12475   +28     
- Misses        2309     2313    +4     

☔ View full report in Codecov by Harness.
📢 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.

Comment thread pypesto/visualize/ensemble.py Outdated

@stephanmg stephanmg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

See single line comments.

@PaulJonasJost PaulJonasJost left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for this :) looks good to me

@close_fig
def test_ensemble_parameters_plot():
# creates a test problem
problem = create_problem(n_parameters=100)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

such a big one necessary for the test? 🙈

@Doresic Doresic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks really nice! Will use myself :) I have a couple of comments

  • can we have a general legend on all the elements of the figure (the rectangles, red point, dashed line)
  • can we have a bar on the side or at the top of the plot that shows the grey and mentions what the grey gradient actually represents? Btw, what does it actually represent? The obj. func. value of the point?

Comment thread pypesto/visualize/ensemble.py Outdated
Comment on lines +430 to +431
ensemble:
ensemble of parameter vectors (from pypesto.ensemble).

@Doresic Doresic Nov 12, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So this is a method to generally just visualize the ensemble, so we cannot really say that the rectangles represent, for example, 95% confidence intervals. But one would need to create an ensemble in some way, and then subset it using a xi^2 threshold to get confidence intervals, right?
Would it be good to have this showcased somewhere, like in a notebook that mentiones ensembles or identifiability? How to use this visualization correctly? Or is it ok to just expand the description of the visualization in the docstring to describe that it will just visualize all members of the ensemble and that these do not represent CIs.

@dweindl
dweindl requested a review from MoR1chter as a code owner August 3, 2026 14:22
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.

7 participants