Skip to content

Commit

Permalink
Inference changed to dataset (#873)
Browse files Browse the repository at this point in the history
* infernece changed to dataset

* inference changed dataset for plot_allocated_contribution_by_channel

---------

Co-authored-by: Will Dean <57733339+wd60622@users.noreply.github.com>
  • Loading branch information
Ishaanjolly and wd60622 authored Jul 25, 2024
1 parent de5679f commit 19aea61
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pymc_marketing/mmm/delayed_saturated_mmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2232,7 +2232,7 @@ def allocate_budget_to_maximize_response(

def plot_budget_allocation(
self,
samples: az.InferenceData,
samples: Dataset,
figsize: tuple[float, float] = (12, 6),
ax: plt.Axes | None = None,
original_scale: bool = True,
Expand All @@ -2242,8 +2242,8 @@ def plot_budget_allocation(
Parameters
----------
samples : az.InferenceData
The inference data containing the channel contributions.
samples : Dataset
The dataset containing the channel contributions.
figsize : tuple[float, float], optional
The size of the figure to be created, by default (12, 6).
ax : plt.Axes, optional
Expand Down Expand Up @@ -2331,7 +2331,7 @@ def plot_budget_allocation(

def plot_allocated_contribution_by_channel(
self,
samples: az.InferenceData,
samples: Dataset,
lower_quantile: float = 0.025,
upper_quantile: float = 0.975,
original_scale: bool = True,
Expand All @@ -2345,8 +2345,8 @@ def plot_allocated_contribution_by_channel(
Parameters
----------
samples : az.InferenceData
The inference data containing the samples of channel contributions.
samples : Dataset
The dataset containing the samples of channel contributions.
lower_quantile : float, optional
The lower quantile for the uncertainty interval. Default is 0.025.
upper_quantile : float, optional
Expand Down

0 comments on commit 19aea61

Please sign in to comment.