pdstools.adm.Plots._helpers¶
Shared helpers for the pdstools.adm.Plots package.
Contains the requires decorator (column-presence guard for plot
methods), the MetricLimits annotation helper, and small
plotly building blocks reused by multiple mixins.
Attributes¶
Functions¶
|
|
|
|
|
Add dashed lines at MetricLimits thresholds (red=hard, green=best practice). |
|
Module Contents¶
- logger¶
- COLORSCALE_TYPES¶
- T¶
- P¶
- requires(model_columns: collections.abc.Iterable[str] | None = None, predictor_columns: collections.abc.Iterable[str] | None = None, combined_columns: collections.abc.Iterable[str] | None = None)¶
- Parameters:
model_columns (collections.abc.Iterable[str] | None)
predictor_columns (collections.abc.Iterable[str] | None)
combined_columns (collections.abc.Iterable[str] | None)
- add_bottom_left_text_to_bubble_plot(fig: pdstools.utils.plot_utils.Figure, df: polars.LazyFrame, bubble_size: int)¶
- Parameters:
df (polars.LazyFrame)
bubble_size (int)
- add_metric_limit_lines(fig: pdstools.utils.plot_utils.Figure, metric_id: str = 'ModelPerformance', scale: float = 100.0, orientation: str = 'vertical') pdstools.utils.plot_utils.Figure¶
Add dashed lines at MetricLimits thresholds (red=hard, green=best practice).