ls_mlkit.util.plot.comparison_plot module

Comparison plotting utilities for multi-model analysis

ls_mlkit.util.plot.comparison_plot.plot_entity_wise_comparison(results_dict: Dict[str, List[Dict[str, Any]]], output_dir: str, figsize: Tuple[float, float] = (12, 8), top_n: int = 20, name_formatter: Callable[[str], str] | None = None, entity_key: str = 'entity_name', value_key: str = 'value', title: str | None = None, xlabel: str = 'Entity Names', ylabel: str = 'Value', filename: str = 'entity_wise_comparison.png', name_truncate_length: int = 15, alpha: float = 0.7, dpi: int = 300, grid: bool = True, grid_alpha: float = 0.3, legend_bbox_to_anchor: Tuple[float, float] = (0.5, 1.2), legend_loc: str = 'upper center', legend_fontsize: int | str = 7, legend_ncol: int = 1, rotation: float = 45, ha: str = 'right', show: bool = False, save: bool = True, return_fig_ax: bool = False) Tuple[Figure, Axes] | None[source]