google-meridian 1.0.3__tar.gz → 1.0.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. {google_meridian-1.0.3/google_meridian.egg-info → google_meridian-1.0.5}/PKG-INFO +26 -21
  2. {google_meridian-1.0.3 → google_meridian-1.0.5}/README.md +24 -19
  3. {google_meridian-1.0.3 → google_meridian-1.0.5/google_meridian.egg-info}/PKG-INFO +26 -21
  4. {google_meridian-1.0.3 → google_meridian-1.0.5}/google_meridian.egg-info/SOURCES.txt +4 -0
  5. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/__init__.py +1 -1
  6. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/analyzer.py +347 -512
  7. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/formatter.py +18 -0
  8. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/optimizer.py +259 -145
  9. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/summarizer.py +2 -2
  10. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/visualizer.py +21 -2
  11. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/data/__init__.py +1 -0
  12. google_meridian-1.0.5/meridian/data/arg_builder.py +107 -0
  13. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/data/input_data.py +23 -0
  14. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/data/test_utils.py +6 -4
  15. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/model/__init__.py +2 -0
  16. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/model/model.py +42 -984
  17. google_meridian-1.0.5/meridian/model/model_test_data.py +351 -0
  18. google_meridian-1.0.5/meridian/model/posterior_sampler.py +566 -0
  19. google_meridian-1.0.5/meridian/model/prior_sampler.py +633 -0
  20. {google_meridian-1.0.3 → google_meridian-1.0.5}/pyproject.toml +1 -1
  21. {google_meridian-1.0.3 → google_meridian-1.0.5}/LICENSE +0 -0
  22. {google_meridian-1.0.3 → google_meridian-1.0.5}/MANIFEST.in +0 -0
  23. {google_meridian-1.0.3 → google_meridian-1.0.5}/google_meridian.egg-info/dependency_links.txt +0 -0
  24. {google_meridian-1.0.3 → google_meridian-1.0.5}/google_meridian.egg-info/requires.txt +0 -0
  25. {google_meridian-1.0.3 → google_meridian-1.0.5}/google_meridian.egg-info/top_level.txt +0 -0
  26. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/__init__.py +0 -0
  27. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/summary_text.py +0 -0
  28. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/templates/card.html.jinja +0 -0
  29. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/templates/chart.html.jinja +0 -0
  30. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/templates/chips.html.jinja +0 -0
  31. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/templates/insights.html.jinja +0 -0
  32. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/templates/stats.html.jinja +0 -0
  33. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/templates/style.scss +0 -0
  34. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/templates/summary.html.jinja +0 -0
  35. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/templates/table.html.jinja +0 -0
  36. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/analysis/test_utils.py +0 -0
  37. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/constants.py +0 -0
  38. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/data/load.py +0 -0
  39. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/data/time_coordinates.py +0 -0
  40. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/model/adstock_hill.py +0 -0
  41. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/model/knots.py +0 -0
  42. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/model/media.py +0 -0
  43. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/model/prior_distribution.py +0 -0
  44. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/model/spec.py +0 -0
  45. {google_meridian-1.0.3 → google_meridian-1.0.5}/meridian/model/transformers.py +0 -0
  46. {google_meridian-1.0.3 → google_meridian-1.0.5}/setup.cfg +0 -0
  47. {google_meridian-1.0.3 → google_meridian-1.0.5}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: google-meridian
3
- Version: 1.0.3
3
+ Version: 1.0.5
4
4
  Summary: Google's open source mixed marketing model library, helps you understand your return on investment and direct your ad spend with confidence.
5
5
  Author-email: The Meridian Authors <no-reply@google.com>
6
6
  License:
@@ -215,7 +215,7 @@ Classifier: Programming Language :: Python :: 3
215
215
  Classifier: Programming Language :: Python :: 3 :: Only
216
216
  Classifier: Topic :: Other/Nonlisted Topic
217
217
  Classifier: Topic :: Scientific/Engineering :: Information Analysis
218
- Requires-Python: >=3.11
218
+ Requires-Python: >=3.10
219
219
  Description-Content-Type: text/markdown
220
220
  License-File: LICENSE
221
221
  Requires-Dist: arviz
@@ -268,7 +268,7 @@ If you are using LightweightMMM, see the
268
268
  [migration guide](https://developers.google.com/meridian/docs/migrate) to help
269
269
  you understand the differences between these MMM projects.
270
270
 
271
- # Install Meridian
271
+ ## Install Meridian
272
272
 
273
273
  Python 3.11 or 3.12 is required to use Meridian. We also recommend using a
274
274
  minimum of 1 GPU.
@@ -278,32 +278,37 @@ Note: This project has been tested on T4 GPU using 16 GB of RAM.
278
278
  To install Meridian, run the following command to automatically install the
279
279
  latest release from PyPI.
280
280
 
281
- For GPU users (requires CUDA toolchain to already be installed in the system):
281
+ * For Linux-GPU users:
282
282
 
283
- ```sh
284
- $ pip install --upgrade google-meridian[and-cuda]
285
- ```
283
+ Note: CUDA toolchain and a compatible GPU device is necessary for
284
+ `[and-cuda]` extra to activate.
286
285
 
287
- For CPU users:
286
+ ```sh
287
+ $ pip install --upgrade google-meridian[and-cuda]
288
+ ```
288
289
 
289
- ```sh
290
- $ pip install --upgrade google-meridian
291
- ```
290
+ * For macOS and general CPU users:
291
+
292
+ Note: There is no official GPU support for macOS.
293
+
294
+ ```sh
295
+ $ pip install --upgrade google-meridian
296
+ ```
292
297
 
293
298
  Alternatively, run the following command to install the most recent, unreleased
294
299
  version from GitHub.
295
300
 
296
- For GPU users (requires CUDA toolchain to already be installed in the system):
301
+ * For GPU users:
297
302
 
298
- ```sh
299
- $ pip install --upgrade "google-meridian[and-cuda] @ git+https://github.com/google/meridian.git"
300
- ```
303
+ ```sh
304
+ $ pip install --upgrade "google-meridian[and-cuda] @ git+https://github.com/google/meridian.git"
305
+ ```
301
306
 
302
- For CPU users:
307
+ * For CPU users:
303
308
 
304
- ```sh
305
- $ pip install --upgrade git+https://github.com/google/meridian.git
306
- ```
309
+ ```sh
310
+ $ pip install --upgrade git+https://github.com/google/meridian.git
311
+ ```
307
312
 
308
313
  We recommend to install Meridian in a fresh
309
314
  [virtual environment](https://virtualenv.pypa.io/en/latest/user_guide.html#quick-start)
@@ -322,7 +327,7 @@ developed across the library (out-of-the-box) using tensors. We recommend
322
327
  running your Meridian model on GPUs to get real time optimization results and
323
328
  significantly reduce training time.
324
329
 
325
- # Meridian Documentation & Tutorials
330
+ ## Meridian Documentation & Tutorials
326
331
 
327
332
  The following documentation, colab, and video resources will help you get
328
333
  started quickly with using Meridian:
@@ -387,7 +392,7 @@ To cite this repository:
387
392
  author = {Google Meridian Marketing Mix Modeling Team},
388
393
  title = {Meridian: Marketing Mix Modeling},
389
394
  url = {https://github.com/google/meridian},
390
- version = {1.0.3},
395
+ version = {1.0.5},
391
396
  year = {2025},
392
397
  }
393
398
  ```
@@ -27,7 +27,7 @@ If you are using LightweightMMM, see the
27
27
  [migration guide](https://developers.google.com/meridian/docs/migrate) to help
28
28
  you understand the differences between these MMM projects.
29
29
 
30
- # Install Meridian
30
+ ## Install Meridian
31
31
 
32
32
  Python 3.11 or 3.12 is required to use Meridian. We also recommend using a
33
33
  minimum of 1 GPU.
@@ -37,32 +37,37 @@ Note: This project has been tested on T4 GPU using 16 GB of RAM.
37
37
  To install Meridian, run the following command to automatically install the
38
38
  latest release from PyPI.
39
39
 
40
- For GPU users (requires CUDA toolchain to already be installed in the system):
40
+ * For Linux-GPU users:
41
41
 
42
- ```sh
43
- $ pip install --upgrade google-meridian[and-cuda]
44
- ```
42
+ Note: CUDA toolchain and a compatible GPU device is necessary for
43
+ `[and-cuda]` extra to activate.
45
44
 
46
- For CPU users:
45
+ ```sh
46
+ $ pip install --upgrade google-meridian[and-cuda]
47
+ ```
47
48
 
48
- ```sh
49
- $ pip install --upgrade google-meridian
50
- ```
49
+ * For macOS and general CPU users:
50
+
51
+ Note: There is no official GPU support for macOS.
52
+
53
+ ```sh
54
+ $ pip install --upgrade google-meridian
55
+ ```
51
56
 
52
57
  Alternatively, run the following command to install the most recent, unreleased
53
58
  version from GitHub.
54
59
 
55
- For GPU users (requires CUDA toolchain to already be installed in the system):
60
+ * For GPU users:
56
61
 
57
- ```sh
58
- $ pip install --upgrade "google-meridian[and-cuda] @ git+https://github.com/google/meridian.git"
59
- ```
62
+ ```sh
63
+ $ pip install --upgrade "google-meridian[and-cuda] @ git+https://github.com/google/meridian.git"
64
+ ```
60
65
 
61
- For CPU users:
66
+ * For CPU users:
62
67
 
63
- ```sh
64
- $ pip install --upgrade git+https://github.com/google/meridian.git
65
- ```
68
+ ```sh
69
+ $ pip install --upgrade git+https://github.com/google/meridian.git
70
+ ```
66
71
 
67
72
  We recommend to install Meridian in a fresh
68
73
  [virtual environment](https://virtualenv.pypa.io/en/latest/user_guide.html#quick-start)
@@ -81,7 +86,7 @@ developed across the library (out-of-the-box) using tensors. We recommend
81
86
  running your Meridian model on GPUs to get real time optimization results and
82
87
  significantly reduce training time.
83
88
 
84
- # Meridian Documentation & Tutorials
89
+ ## Meridian Documentation & Tutorials
85
90
 
86
91
  The following documentation, colab, and video resources will help you get
87
92
  started quickly with using Meridian:
@@ -146,7 +151,7 @@ To cite this repository:
146
151
  author = {Google Meridian Marketing Mix Modeling Team},
147
152
  title = {Meridian: Marketing Mix Modeling},
148
153
  url = {https://github.com/google/meridian},
149
- version = {1.0.3},
154
+ version = {1.0.5},
150
155
  year = {2025},
151
156
  }
152
157
  ```
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: google-meridian
3
- Version: 1.0.3
3
+ Version: 1.0.5
4
4
  Summary: Google's open source mixed marketing model library, helps you understand your return on investment and direct your ad spend with confidence.
5
5
  Author-email: The Meridian Authors <no-reply@google.com>
6
6
  License:
@@ -215,7 +215,7 @@ Classifier: Programming Language :: Python :: 3
215
215
  Classifier: Programming Language :: Python :: 3 :: Only
216
216
  Classifier: Topic :: Other/Nonlisted Topic
217
217
  Classifier: Topic :: Scientific/Engineering :: Information Analysis
218
- Requires-Python: >=3.11
218
+ Requires-Python: >=3.10
219
219
  Description-Content-Type: text/markdown
220
220
  License-File: LICENSE
221
221
  Requires-Dist: arviz
@@ -268,7 +268,7 @@ If you are using LightweightMMM, see the
268
268
  [migration guide](https://developers.google.com/meridian/docs/migrate) to help
269
269
  you understand the differences between these MMM projects.
270
270
 
271
- # Install Meridian
271
+ ## Install Meridian
272
272
 
273
273
  Python 3.11 or 3.12 is required to use Meridian. We also recommend using a
274
274
  minimum of 1 GPU.
@@ -278,32 +278,37 @@ Note: This project has been tested on T4 GPU using 16 GB of RAM.
278
278
  To install Meridian, run the following command to automatically install the
279
279
  latest release from PyPI.
280
280
 
281
- For GPU users (requires CUDA toolchain to already be installed in the system):
281
+ * For Linux-GPU users:
282
282
 
283
- ```sh
284
- $ pip install --upgrade google-meridian[and-cuda]
285
- ```
283
+ Note: CUDA toolchain and a compatible GPU device is necessary for
284
+ `[and-cuda]` extra to activate.
286
285
 
287
- For CPU users:
286
+ ```sh
287
+ $ pip install --upgrade google-meridian[and-cuda]
288
+ ```
288
289
 
289
- ```sh
290
- $ pip install --upgrade google-meridian
291
- ```
290
+ * For macOS and general CPU users:
291
+
292
+ Note: There is no official GPU support for macOS.
293
+
294
+ ```sh
295
+ $ pip install --upgrade google-meridian
296
+ ```
292
297
 
293
298
  Alternatively, run the following command to install the most recent, unreleased
294
299
  version from GitHub.
295
300
 
296
- For GPU users (requires CUDA toolchain to already be installed in the system):
301
+ * For GPU users:
297
302
 
298
- ```sh
299
- $ pip install --upgrade "google-meridian[and-cuda] @ git+https://github.com/google/meridian.git"
300
- ```
303
+ ```sh
304
+ $ pip install --upgrade "google-meridian[and-cuda] @ git+https://github.com/google/meridian.git"
305
+ ```
301
306
 
302
- For CPU users:
307
+ * For CPU users:
303
308
 
304
- ```sh
305
- $ pip install --upgrade git+https://github.com/google/meridian.git
306
- ```
309
+ ```sh
310
+ $ pip install --upgrade git+https://github.com/google/meridian.git
311
+ ```
307
312
 
308
313
  We recommend to install Meridian in a fresh
309
314
  [virtual environment](https://virtualenv.pypa.io/en/latest/user_guide.html#quick-start)
@@ -322,7 +327,7 @@ developed across the library (out-of-the-box) using tensors. We recommend
322
327
  running your Meridian model on GPUs to get real time optimization results and
323
328
  significantly reduce training time.
324
329
 
325
- # Meridian Documentation & Tutorials
330
+ ## Meridian Documentation & Tutorials
326
331
 
327
332
  The following documentation, colab, and video resources will help you get
328
333
  started quickly with using Meridian:
@@ -387,7 +392,7 @@ To cite this repository:
387
392
  author = {Google Meridian Marketing Mix Modeling Team},
388
393
  title = {Meridian: Marketing Mix Modeling},
389
394
  url = {https://github.com/google/meridian},
390
- version = {1.0.3},
395
+ version = {1.0.5},
391
396
  year = {2025},
392
397
  }
393
398
  ```
@@ -27,6 +27,7 @@ meridian/analysis/templates/style.scss
27
27
  meridian/analysis/templates/summary.html.jinja
28
28
  meridian/analysis/templates/table.html.jinja
29
29
  meridian/data/__init__.py
30
+ meridian/data/arg_builder.py
30
31
  meridian/data/input_data.py
31
32
  meridian/data/load.py
32
33
  meridian/data/test_utils.py
@@ -36,6 +37,9 @@ meridian/model/adstock_hill.py
36
37
  meridian/model/knots.py
37
38
  meridian/model/media.py
38
39
  meridian/model/model.py
40
+ meridian/model/model_test_data.py
41
+ meridian/model/posterior_sampler.py
39
42
  meridian/model/prior_distribution.py
43
+ meridian/model/prior_sampler.py
40
44
  meridian/model/spec.py
41
45
  meridian/model/transformers.py
@@ -14,7 +14,7 @@
14
14
 
15
15
  """Meridian API."""
16
16
 
17
- __version__ = "1.0.3"
17
+ __version__ = "1.0.5"
18
18
 
19
19
 
20
20
  from meridian import analysis