Skip to content

Commit 19aea61

Browse files
Inference changed to dataset (#873)
* infernece changed to dataset * inference changed dataset for plot_allocated_contribution_by_channel --------- Co-authored-by: Will Dean <57733339+wd60622@users.noreply.github.com>
1 parent de5679f commit 19aea61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pymc_marketing/mmm/delayed_saturated_mmm.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,7 @@ def allocate_budget_to_maximize_response(
22322232

22332233
def plot_budget_allocation(
22342234
self,
2235-
samples: az.InferenceData,
2235+
samples: Dataset,
22362236
figsize: tuple[float, float] = (12, 6),
22372237
ax: plt.Axes | None = None,
22382238
original_scale: bool = True,
@@ -2242,8 +2242,8 @@ def plot_budget_allocation(
22422242
22432243
Parameters
22442244
----------
2245-
samples : az.InferenceData
2246-
The inference data containing the channel contributions.
2245+
samples : Dataset
2246+
The dataset containing the channel contributions.
22472247
figsize : tuple[float, float], optional
22482248
The size of the figure to be created, by default (12, 6).
22492249
ax : plt.Axes, optional
@@ -2331,7 +2331,7 @@ def plot_budget_allocation(
23312331

23322332
def plot_allocated_contribution_by_channel(
23332333
self,
2334-
samples: az.InferenceData,
2334+
samples: Dataset,
23352335
lower_quantile: float = 0.025,
23362336
upper_quantile: float = 0.975,
23372337
original_scale: bool = True,
@@ -2345,8 +2345,8 @@ def plot_allocated_contribution_by_channel(
23452345
23462346
Parameters
23472347
----------
2348-
samples : az.InferenceData
2349-
The inference data containing the samples of channel contributions.
2348+
samples : Dataset
2349+
The dataset containing the samples of channel contributions.
23502350
lower_quantile : float, optional
23512351
The lower quantile for the uncertainty interval. Default is 0.025.
23522352
upper_quantile : float, optional

0 commit comments

Comments
 (0)