mixdyn 0.1.0__py3-none-any.whl

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 (64) hide show
  1. mixdyn/__init__.py +47 -0
  2. mixdyn/api/__init__.py +75 -0
  3. mixdyn/api/documents.py +2070 -0
  4. mixdyn/api/serialize.py +481 -0
  5. mixdyn/calibration/__init__.py +21 -0
  6. mixdyn/calibration/anchors.py +441 -0
  7. mixdyn/calibration/lift.py +178 -0
  8. mixdyn/calibration/tables.py +383 -0
  9. mixdyn/data/__init__.py +47 -0
  10. mixdyn/data/feedback.py +208 -0
  11. mixdyn/data/geos.py +191 -0
  12. mixdyn/data/issues.py +83 -0
  13. mixdyn/data/panel.py +475 -0
  14. mixdyn/data/read.py +1001 -0
  15. mixdyn/data/recurring.py +230 -0
  16. mixdyn/decisions/__init__.py +84 -0
  17. mixdyn/decisions/_quantile.py +50 -0
  18. mixdyn/decisions/flighting.py +277 -0
  19. mixdyn/decisions/geo_plan.py +474 -0
  20. mixdyn/decisions/margin_plan.py +404 -0
  21. mixdyn/decisions/plan_table.py +418 -0
  22. mixdyn/decisions/posterior.py +1267 -0
  23. mixdyn/decisions/returns.py +177 -0
  24. mixdyn/decisions/scenarios.py +475 -0
  25. mixdyn/experiments/__init__.py +123 -0
  26. mixdyn/experiments/candidates.py +488 -0
  27. mixdyn/experiments/geo_design.py +777 -0
  28. mixdyn/experiments/reading.py +660 -0
  29. mixdyn/experiments/sdid.py +517 -0
  30. mixdyn/experiments/switchback.py +609 -0
  31. mixdyn/experiments/value.py +1273 -0
  32. mixdyn/inference/__init__.py +6 -0
  33. mixdyn/inference/compiled.py +287 -0
  34. mixdyn/inference/diagnostics.py +587 -0
  35. mixdyn/inference/loo.py +253 -0
  36. mixdyn/inference/nuts.py +490 -0
  37. mixdyn/inference/pathfinder.py +248 -0
  38. mixdyn/inference/sensitivity.py +463 -0
  39. mixdyn/models/__init__.py +79 -0
  40. mixdyn/models/bayes_geo.py +800 -0
  41. mixdyn/models/bayes_mmm.py +1864 -0
  42. mixdyn/models/demand.py +87 -0
  43. mixdyn/models/dlm.py +785 -0
  44. mixdyn/models/dlm_choice.py +718 -0
  45. mixdyn/models/dlm_decomposition.py +149 -0
  46. mixdyn/models/dlm_diagnostics.py +176 -0
  47. mixdyn/models/dlm_lift.py +527 -0
  48. mixdyn/models/dlm_media.py +526 -0
  49. mixdyn/models/geo_dlm.py +382 -0
  50. mixdyn/models/geo_eb.py +632 -0
  51. mixdyn/models/margin_mmm.py +996 -0
  52. mixdyn/models/nested.py +505 -0
  53. mixdyn/models/ridge.py +181 -0
  54. mixdyn/models/ridge_mmm.py +514 -0
  55. mixdyn/models/ridge_search.py +493 -0
  56. mixdyn/py.typed +0 -0
  57. mixdyn/transforms/__init__.py +30 -0
  58. mixdyn/transforms/media.py +144 -0
  59. mixdyn/transforms/saturation.py +149 -0
  60. mixdyn-0.1.0.dist-info/METADATA +298 -0
  61. mixdyn-0.1.0.dist-info/RECORD +64 -0
  62. mixdyn-0.1.0.dist-info/WHEEL +4 -0
  63. mixdyn-0.1.0.dist-info/licenses/LICENSE +202 -0
  64. mixdyn-0.1.0.dist-info/licenses/NOTICE +2 -0
mixdyn/__init__.py ADDED
@@ -0,0 +1,47 @@
1
+ """mixdyn: a media-mix modelling engine built on causal-hybrid-control."""
2
+
3
+ from mixdyn.data import (
4
+ NATIONAL,
5
+ Allotment,
6
+ Baseline,
7
+ Cadence,
8
+ Channel,
9
+ Combine,
10
+ Count,
11
+ Gap,
12
+ Geo,
13
+ Issue,
14
+ IssueCode,
15
+ Lever,
16
+ LeverKind,
17
+ MediaPanel,
18
+ PanelError,
19
+ Revenue,
20
+ Severity,
21
+ aggregate,
22
+ allot_national,
23
+ read_panel,
24
+ )
25
+
26
+ __all__ = [
27
+ "NATIONAL",
28
+ "Allotment",
29
+ "Baseline",
30
+ "Cadence",
31
+ "Channel",
32
+ "Combine",
33
+ "Count",
34
+ "Gap",
35
+ "Geo",
36
+ "Issue",
37
+ "IssueCode",
38
+ "Lever",
39
+ "LeverKind",
40
+ "MediaPanel",
41
+ "PanelError",
42
+ "Revenue",
43
+ "Severity",
44
+ "aggregate",
45
+ "allot_national",
46
+ "read_panel",
47
+ ]
mixdyn/api/__init__.py ADDED
@@ -0,0 +1,75 @@
1
+ """The engine's stable surface for callers outside Python: versioned JSON documents."""
2
+
3
+ from mixdyn.api.documents import (
4
+ DECISION,
5
+ FACTSHEET,
6
+ ISSUES,
7
+ LIFT_TESTS,
8
+ Compute,
9
+ Decision,
10
+ Estimand,
11
+ Event,
12
+ Factsheet,
13
+ Health,
14
+ Holdout,
15
+ NextTest,
16
+ Period,
17
+ PowerSummary,
18
+ Prior,
19
+ Reconciliation,
20
+ Refresh,
21
+ ReturnRange,
22
+ Schema,
23
+ SchemaError,
24
+ Source,
25
+ Spend,
26
+ Unfilled,
27
+ decision,
28
+ dlm_factsheet,
29
+ dumps,
30
+ estimands,
31
+ factsheet,
32
+ geo_factsheet,
33
+ loads,
34
+ reconcile,
35
+ render,
36
+ ridge_factsheet,
37
+ sensitivity_line,
38
+ )
39
+
40
+ __all__ = [
41
+ "DECISION",
42
+ "FACTSHEET",
43
+ "ISSUES",
44
+ "LIFT_TESTS",
45
+ "Compute",
46
+ "Decision",
47
+ "Estimand",
48
+ "Event",
49
+ "Factsheet",
50
+ "Health",
51
+ "Holdout",
52
+ "NextTest",
53
+ "Period",
54
+ "PowerSummary",
55
+ "Prior",
56
+ "Reconciliation",
57
+ "Refresh",
58
+ "ReturnRange",
59
+ "Schema",
60
+ "SchemaError",
61
+ "Source",
62
+ "Spend",
63
+ "Unfilled",
64
+ "decision",
65
+ "dlm_factsheet",
66
+ "dumps",
67
+ "estimands",
68
+ "factsheet",
69
+ "geo_factsheet",
70
+ "loads",
71
+ "reconcile",
72
+ "render",
73
+ "ridge_factsheet",
74
+ "sensitivity_line",
75
+ ]