Skip to content

Commit 020356c

Browse files
committed
Requested changes
1 parent a1afa28 commit 020356c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/notebooks/mmm/mmm_multidimensional_example.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5142,7 +5142,7 @@
51425142
"cell_type": "markdown",
51435143
"metadata": {},
51445144
"source": [
5145-
"If you have a custom model, you can wrappe it into the model protocol, and use the optimizer after. If your model handle scales internally, you don't need to modify anything. Otherwise, for the plots, you may want to use `scale_factor=N`. E.g:\n",
5145+
"If you have a custom model, you can wrapped it into the model protocol, and use the optimizer after. If your model handle scales internally, you don't need to modify anything. Otherwise, for the plots, you may want to use `scale_factor=N`. E.g:\n",
51465146
"\n",
51475147
"```python\n",
51485148
"optimizable_model.plot.budget_allocation(\n",

pymc_marketing/mmm/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,11 @@ def create_zero_dataset(
224224
inferred_freq = pd.infer_freq(date_series.unique())
225225
if inferred_freq is None: # fall-back if inference fails
226226
warnings.warn(
227-
f"Could not infer frequency from '{date_col}'. Using daily ('D').",
227+
f"Could not infer frequency from '{date_col}'. Using weekly ('W').",
228228
UserWarning,
229229
stacklevel=2,
230230
)
231-
inferred_freq = "D"
231+
inferred_freq = "W"
232232

233233
# ---- 2. Build the full Cartesian product of dates X dims -------------------
234234
new_dates = pd.date_range(

0 commit comments

Comments
 (0)