MetricsSummaryDisplay#
- class skore.MetricsSummaryDisplay(summarize_data)[source]#
Display for summarize.
An instance of this class will be created by
Report.metrics.summarize(). This class should not be instantiated directly.- frame()[source]#
Return the summarize as a dataframe.
- Returns:
- framepandas.DataFrame
The report metrics as a dataframe.
- set_style(*, policy='override', **kwargs)[source]#
Set the style parameters for the display.
- Parameters:
- policyLiteral[“override”, “update”], default=”override”
Policy to use when setting the style parameters. If “override”, existing settings are set to the provided values. If “update”, existing settings are not changed; only settings that were previously unset are changed.
- **kwargsdict
Style parameters to set. Each parameter name should correspond to a a style attribute passed to the plot method of the display.
- Returns:
- selfobject
Returns the instance itself.
- Raises:
- ValueError
If a style parameter is unknown.
- static style_plot(plot_func)[source]#
Apply consistent style to skore displays.
This decorator: 1. Applies default style settings 2. Executes
plot_func3. Callsplt.tight_layout()to make sure axis does not overlap 4. Restores the original style settings- Parameters:
- plot_funccallable
The plot function to be decorated.
- Returns:
- callable
The decorated plot function.