ExperimentDesigner.plot_power_cost#

ExperimentDesigner.plot_power_cost(recommendations, colors=None, figsize=None)[source]#

Scatter plot of assurance vs. absolute net cost.

Points are coloured by channel and shaped by spend direction.

Parameters:
recommendationsExperimentRecommendations | Sequence[ExperimentRecommendation]

Output of recommend().

colorsdict[str, str] | None

Mapping of channel name to matplotlib color string. Falls back to C0, C1, … when None.

figsizetuple[float, float] | None

(width, height) for the figure. Defaults to (10, 4).

Returns:
tuple[Figure, Axes]