Repository navigation
ENH auto-detect built-in CI in plot_metric_frame - #1674
Conversation
romanlutz
left a comment
There was a problem hiding this comment.
Thanks a lot for the contribution! I left a few comments. Let me know if you want me to help in addressing them.
d810c8c to
5a15d29
Compare
|
Thanks for the thorough review — really helpful. I've reworked the helper to use the public Also handled the quantile edge cases — >2 quantiles now warns and picks the outermost pair, and reversed order is sorted before splitting. Added tests for all of those. Docstring and changelog are updated too. And I pulled out the adversarial mitigation change since it's already #1673. |
|
Good catch on both — I've added the |
Addresses #1487.
This PR lets
plot_metric_frameuse the confidence intervals already computed byMetricFramewhen it was constructed withn_bootandci_quantiles.When
conf_intervalsis not provided, the plotting helper now detects the built-inby_group_ciresults and converts them into the existing error-bar path. If users passconf_intervalsexplicitly, that existing behavior continues to take precedence.This keeps the change internal to the plotting bridge and does not add a new public API. I added tests for single-metric and multi-metric
MetricFrameplots, the no-bootstrap fallback, and the explicitconf_intervalsoverride path.