attribench.plot.KrippendorffAlphaPlot
- class attribench.plot.KrippendorffAlphaPlot(dfs)[source]
Bases:
PlotBar plot of Krippendorff’s alpha for each metric.
- Parameters:
- dfsDict[str, Tuple[pd.DataFrame, bool]]
A dictionary mapping metric names to tuples of dataframes and booleans. The boolean indicates whether higher values of the metric are better (
True) or not (False). The dataframes should have the same columns, which are the names of the methods.
Methods
Render the plot.
- render(title=None, figsize=(10, 10), fontsize=20)[source]
Render the plot.
- Parameters:
- titlestr | None, optional
Title of the figure, by default None
- figsizetuple, optional
Size of the figure, by default (10, 10)
- fontsizeint, optional
Font size of x and y axis ticks, by default 20
- Returns:
- Figure
Rendered Matplotlib figure.
- Return type:
Figure