Skip to content

Commit

Permalink
Update MMM docs to use graphviz method (#1172)
Browse files Browse the repository at this point in the history
* Update docs to use graphviz method

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Will Dean <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 5, 2024
1 parent bd5261c commit eb80ddb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions docs/source/notebooks/mmm/mmm_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import pymc as pm\n",
"import seaborn as sns\n",
"\n",
"from pymc_marketing.mmm import MMM, GeometricAdstock, LogisticSaturation\n",
Expand Down Expand Up @@ -6422,7 +6421,7 @@
}
],
"source": [
"pm.model_to_graphviz(model=mmm.model)"
"mmm.graphviz()"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions docs/source/notebooks/mmm/mmm_lift_test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@
}
],
"source": [
"pm.model_to_graphviz(mmm.model)"
"mmm.graphviz()"
]
},
{
Expand Down Expand Up @@ -1430,7 +1430,7 @@
"source": [
"mmm.add_lift_test_measurements(df_lift_test)\n",
"\n",
"pm.model_to_graphviz(mmm.model)"
"mmm.graphviz()"
]
},
{
Expand Down Expand Up @@ -2077,7 +2077,7 @@
"source": [
"mmm.add_lift_test_measurements(df_additional_lift_test, name=\"more_lift_measurements\")\n",
"\n",
"pm.model_to_graphviz(mmm.model)"
"mmm.graphviz()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@
],
"source": [
"# Model to graphiz\n",
"pm.model_to_graphviz(dummy_mmm.model)"
"dummy_mmm.graphviz()"
]
},
{
Expand Down

0 comments on commit eb80ddb

Please sign in to comment.