attribench.plot.Plot

class attribench.plot.Plot(dfs)[source]

Bases: object

Abstract base class for all plots. A plot is simply an object that has a render method that returns a matplotlib Figure.

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

rtype:

Figure