DeepCausalMMM
Advanced Marketing Mix Modeling with Causal Inference and Deep Learning
Development history
A substantial part of the design and prototyping was done locally before this repository was published on GitHub. The public commit history therefore reflects integration, hardening, documentation, tests, and packaging of that prior work more than a day-by-day log of initial exploration. You may see bursts of commits (e.g. around releases or doc pushes) and quieter periods in between; that pattern is typical when integrating a working prototype into an open-source layout rather than indicating only the span of weeks visible on GitHub.
Key Features
Architecture
- Config-Driven: Every setting configurable via
config.py - GRU-Based Temporal Modeling: Captures complex time-varying effects
- Mandatory Causal Artifacts: Every standard training run refreshes a conditional NOTEARS DAG and produces DMA-week structural scenario estimates; observational DAGs are not causal proof.
- Learnable Coefficient Bounds: Channel-specific, data-driven constraints
- Data-Driven Seasonality: Automatic seasonal decomposition per region
Robust Statistical Methods
- Huber Loss: Robust to outliers and extreme values
- Multiple Metrics: RMSE, R², MAE, Trimmed RMSE
- Advanced Regularization: L1/L2, sparsity, coefficient-specific penalties
- Gradient Clipping: Parameter-specific clipping for stability
Comprehensive Analysis in Examples Folder
- Interactive Visualizations: Example html dashboard with some plots and insights
- Response Curves: Non-linear saturation analysis with Hill equations
- Budget Optimization: Constrained optimization for optimal channel allocation
- DMA-Level Contributions: True economic impact calculation at DMA level
- Channel Effectiveness: Detailed performance analysis
Quick Start
Installation
From PyPI (Recommended)
pip install deepcausalmmm
From GitHub (Development Version)
# Install the latest development version with all fixes
pip install git+https://github.com/adityapt/deepcausalmmm.git
Manual Installation
# Clone repository
git clone https://github.com/adityapt/deepcausalmmm.git
cd deepcausalmmm
pip install -e .
Dependencies Only
Same lower/upper bounds as pyproject.toml [project] dependencies (install libraries without the deepcausalmmm package):
pip install \
"torch>=2.0" \
"pandas>=1.5" \
"numpy>=1.21,<2.0" \
"plotly>=5.0" \
"networkx>=2.6" \
"graphviz>=0.20" \
"scikit-learn>=1.0" \
"scipy>=1.7" \
"statsmodels>=0.13" \
"tqdm>=4.60"
IMPORTANT: Version Compatibility
The code examples in this README are for version 2.0.0+.
If you installed from PyPI previously (pip install deepcausalmmm), you might have v1.0.18 or below which has a completely different API. The examples below will NOT work for v1.0.18 and below.
For Current PyPI Users (v1.0.18 and below):
# Option 1: Upgrade to latest version from PyPi
pip install --upgrade deepcausalmmm
# OR shorthand
pip install -U deepcausalmmm
# Option 2: Install the development version (from GitHub)
pip install --upgrade git+https://github.com/adityapt/deepcausalmmm.git
# Option 3: Force reinstall if you have conflicts
pip install --upgrade --force-reinstall deepcausalmmm
v2.0.0 migration note
The predictive GRU API is unchanged, but standard v2 training requires a
fitted UnifiedDataPipeline with raw DMA-week media, outcome, and
pre-treatment controls. Training always refreshes causal artifacts after the
GRU fit, rather than adding causal assumptions to the GRU loss. See
docs/source/migration_v2.rst for migration details and limitations.
API Changes in v1.0.19:
- New:
pipelineparameter inModelTrainer.train() - Fixed: Proper data scaling without leakage
- Fixed: Correct attribution calculation
- New:
ConfigurableDataGenerator.generate_mmm_dataset()method - Removed:
y_full_for_baselineparameter (data leakage fix)
Basic Usage
import numpy as np
from deepcausalmmm import get_device
from deepcausalmmm.core import get_default_config
from deepcausalmmm.core.trainer import ModelTrainer
from deepcausalmmm.core.data import UnifiedDataPipeline
from deepcausalmmm.utils.data_generator import ConfigurableDataGenerator
# Generate synthetic data for testing
# You can replace this with your own data in the same format
n_regions = 50 # Number of DMAs/regions
n_weeks = 104 # 2 years of weekly data
n_media = 13 # Number of media channels
n_control = 3 # Number of control variables
generator = ConfigurableDataGenerator()
X_media, X_control, y = generator.generate_mmm_dataset(
n_regions=n_regions,
n_weeks=n_weeks,
n_media_channels=n_media,
n_control_channels=n_control
)
# Expected data format:
# X_media: [n_regions, n_weeks, n_media_channels] - Media inputs
# X_control: [n_regions, n_weeks, n_control_variables] - Control variables
# y: [n_regions, n_weeks] - Target variable (KPI units)
# Get configuration
config = get_default_config()
config['n_epochs'] = 200 # Adjust as needed
# Check device availability
device = get_device()
print(f"Using device: {device}")
# Initialize pipeline
pipeline = UnifiedDataPipeline(config)
# Split data temporally (train/holdout)
train_data, holdout_data = pipeline.temporal_split(X_media, X_control, y)
# Process training data
train_tensors = pipeline.fit_and_transform_training(train_data)
holdout_tensors = pipeline.transform_holdout(holdout_data)
# Create trainer and model
trainer = ModelTrainer(config)
model = trainer.create_model(
n_media=train_tensors['X_media'].shape[2],
n_control=train_tensors['X_control'].shape[2],
n_regions=train_tensors['X_media'].shape[0]
)
trainer.create_optimizer_and_scheduler()
# Train model
results = trainer.train(
train_tensors['X_media'], train_tensors['X_control'],
train_tensors['R'], train_tensors['y'],
holdout_tensors['X_media'], holdout_tensors['X_control'],
holdout_tensors['R'], holdout_tensors['y'],
pipeline=pipeline,
verbose=True
)
# View results
print(f"Training R²: {results['final_train_r2']:.3f}")
print(f"Holdout R²: {results['final_holdout_r2']:.3f}")
Causal scenario layer (v2.0)
The GRU MMM remains the predictive model. The causal scenario layer is a
mandatory post-fit stage of standard training: it conditions media on measured controls,
DMA fixed effects, and Fourier time features; learns a contemporaneous media
DAG with conditional NOTEARS; then evaluates do(channel=0) scenarios with
a monotone nonlinear outcome equation. It does not retrain or modify the
GRU.
# Standalone inspection runner; standard ModelTrainer.train() also writes these artifacts.
python examples/run_causal_attribution.py
# Optional bounded, warm-started DAG stability screen added to the mandatory artifacts.
python examples/run_causal_attribution.py --bootstrap-repetitions 3 --bootstrap-block-size 10
The runner writes:
causal_attribution_report.json— aggregate direct, mediated, and total scenarios plus diagnostics;causal_attribution_dma_week_channel.csv— one row per DMA × week × channel, with predicted and counterfactual visits and time-varying effects;causal_dag_positive.svg— the exact positive, acyclic intervention DAG used by the scenario calculation.
The output is assumption-based structural simulation, not experimentally
identified incrementality. The learned graph is observational; passing the
included support, future-media placebo, or bootstrap checks does not prove
that unmeasured confounding is absent. Channel do(0) scenarios also
overlap, so their shares are not additive attribution; use an additive
Shapley-style allocation before treating them as a budget split.
The SVG renderer requires both the Python dependency and the system Graphviz
dot executable (for example, brew install graphviz or your platform's
equivalent).
Running Examples (Requires Cloning Repository)
The examples/ folder is only available if you clone the repository (not included in pip install):
# Clone the repository first
git clone https://github.com/adityapt/deepcausalmmm.git
cd deepcausalmmm
# Install the package
pip install -e .
# Run the comprehensive dashboard (uses real-world anonymized data)
python examples/dashboard_rmse_optimized.py
# Or run other examples
python examples/example_budget_optimization.py
python examples/example_response_curves.py
Package Import Test
# Verify installation works
from deepcausalmmm import DeepCausalMMM, get_device
from deepcausalmmm.core import get_default_config
print("DeepCausalMMM package imported successfully!")
print(f"Device: {get_device()}")
Project Structure
deepcausalmmm/ # Project root
├── pyproject.toml # Package configuration and dependencies
├── README.md # This documentation
├── LICENSE # MIT License
├── CHANGELOG.md # Version history and changes
├── release_notes/ # Release notes (latest: 2.0.0.md; archive/ for older)
├── CONTRIBUTING.md # Development guidelines
├── CODE_OF_CONDUCT.md # Code of conduct
├── CITATION.cff # Citation metadata for Zenodo/GitHub
├── Makefile # Build and development tasks
├── MANIFEST.in # Package manifest for distribution
│
├── deepcausalmmm/ # Main package directory
│ ├── __init__.py # Package initialization and exports
│ ├── cli.py # Command-line interface
│ ├── exceptions.py # Custom exception classes
│ │
│ ├── core/ # Core model components
│ │ ├── __init__.py # Core module initialization
│ │ ├── config.py # Optimized configuration parameters
│ │ ├── unified_model.py # Main DeepCausalMMM model architecture
│ │ ├── trainer.py # ModelTrainer class for training
│ │ ├── data.py # UnifiedDataPipeline for data processing
│ │ ├── scaling.py # SimpleGlobalScaler for data normalization
│ │ ├── seasonality.py # Seasonal decomposition utilities
│ │ ├── dag_model.py # DAG learning and causal inference
│ │ ├── conditional_notears.py # Conditional NOTEARS media-DAG estimator
│ │ ├── causal_attribution.py # DMA-week structural do() scenarios
│ │ ├── causal_validation.py # Support, placebo, and stability checks
│ │ ├── causal_visualization.py # Graphviz intervention-DAG renderer
│ │ ├── inference.py # Model inference and prediction
│ │ ├── train_model.py # Training functions and utilities
│ │ └── visualization.py # Core visualization components
│ │
│ ├── postprocess/ # Analysis and post-processing
│ │ ├── __init__.py # Postprocess module initialization
│ │ ├── analysis.py # Statistical analysis utilities
│ │ ├── comprehensive_analysis.py # Comprehensive analyzer
│ │ ├── response_curves.py # Non-linear response curve fitting (Hill equations)
│ │ ├── optimization.py # Budget optimization with response curves
│ │ ├── optimization_utils.py # Optimization utility functions
│ │ └── dag_postprocess.py # DAG post-processing and analysis
│ │
│ └── utils/ # Utility functions
│ ├── __init__.py # Utils module initialization
│ ├── device.py # GPU/CPU device detection
│ └── data_generator.py # Synthetic data generation (ConfigurableDataGenerator)
│
├── examples/ # Example scripts and notebooks
│ ├── quickstart.ipynb # Short API intro (Google Colab badge)
│ ├── mmm_three_way_benchmark.ipynb # PyMC / Meridian / DCM / Ridge benchmark (optional; long runtimes)
│ ├── dashboard_rmse_optimized.py # Comprehensive dashboard with 14+ visualizations
│ ├── example_response_curves.py # Response curve fitting examples
│ ├── example_budget_optimization.py # Budget optimization workflow
│ ├── run_causal_attribution.py # Standalone causal scenario runner
│ └── data/ # Example data directory
│ └── MMM Data.csv # Anonymized real-world MMM dataset
│
├── tests/ # Test suite
│ ├── __init__.py # Test package initialization
│ ├── unit/ # Unit tests
│ │ ├── __init__.py
│ │ ├── test_config.py # Configuration tests
│ │ ├── test_model.py # Model architecture tests
│ │ ├── test_scaling.py # Data scaling tests
│ │ ├── test_response_curves.py # Response curve fitting tests
│ │ └── test_inference.py # InferenceManager.predict / forward contract
│ └── integration/ # Integration tests
│ ├── __init__.py
│ ├── test_end_to_end.py # End-to-end integration tests
│ └── test_dashboard_rmse_optimized.py # Dashboard script + real CSV data path
│
├── docs/ # Documentation
│ ├── Makefile # Documentation build tasks
│ ├── make.bat # Windows documentation build
│ ├── requirements.txt # Documentation dependencies
│ └── source/ # Sphinx documentation source
│ ├── conf.py # Sphinx configuration
│ ├── index.rst # Documentation index
│ ├── installation.rst # Installation guide
│ ├── quickstart.rst # Quick start guide
│ ├── contributing.rst # Contributing guide
│ ├── api/ # API documentation
│ │ ├── index.rst
│ │ ├── core.rst
│ │ ├── data.rst
│ │ ├── trainer.rst
│ │ ├── inference.rst
│ │ ├── analysis.rst
│ │ ├── response_curves.rst # Response curves API
│ │ ├── optimization.rst # Budget optimization API
│ │ ├── cli.rst # Command-line interface
│ │ ├── visualization.rst # core.visualization (VisualizationManager)
│ │ ├── utils.rst
│ │ └── exceptions.rst
│ ├── examples/ # Example documentation
│ │ ├── index.rst
│ │ ├── retail_mmm.rst
│ │ └── multi_region.rst
│ └── tutorials/ # Tutorial documentation
│ └── index.rst
│
└── JOSS/ # Journal of Open Source Software submission
├── paper.md # JOSS paper manuscript
├── paper.bib # Bibliography
├── figure_dag_professional.png # DAG visualization figure
└── figure_response_curve_simple.png # Response curve figure
Examples Folder Dashboard Has
- Performance Metrics: Training vs Holdout comparison
- Actual vs Predicted: Time series visualization
- Holdout Scatter: Generalization assessment
- Economic Contributions: Total KPI per channel
- Contribution Breakdown: Donut chart with percentages
- Waterfall Analysis: Decomposed contribution flow
- Channel Effectiveness: Coefficient distributions
- DAG Heatmap: Adjacency matrix visualization
- Stacked Contributions: Time-based channel impact
- Individual Channels: Detailed channel analysis
- Scaled Data: Normalized time series
- Response Curves: Non-linear response curves (diminishing returns analysis) with Hill equations
Configuration
Key configuration parameters:
{
# Model Architecture
'hidden_dim': 320, # Optimal hidden dimension
'dropout': 0.08, # Proven stable dropout
'gru_layers': 1, # Single layer for stability
# Training Parameters
'n_epochs': 6500, # Optimal convergence epochs
'learning_rate': 0.009, # Fine-tuned learning rate
'temporal_regularization': 0.04, # Proven regularization
# Loss Function
'use_huber_loss': True, # Robust to outliers
'huber_delta': 0.3, # Optimal delta value
# Data Processing
'holdout_ratio': 0.08, # Optimal train/test split
'burn_in_weeks': 6, # Stabilization period
}
More Details
Learnable Parameters
- Media Coefficient Bounds:
F.softplus(coeff_max_raw) * torch.sigmoid(media_coeffs_raw) - Control Coefficients: Unbounded with gradient clipping
- Trend Damping: Disabled for now, will be enabled in future releases
- Baseline Components: Non-negative via
F.softplus - Seasonal Coefficient: Learnable seasonal contribution
Data Processing
- Linear Scaling: Dependent variable scaled by regional mean (y/y_mean) for balanced training
- SOV Scaling: Share-of-voice normalization for media channels
- Z-Score Normalization: For control variables (weather, events, etc.)
- Min-Max Seasonality: Regional seasonal scaling (0-1) using
seasonal_decompose - DMA-Level Processing: Contributions calculated per region
- Attribution Priors: Media contribution regularization with dynamic loss scaling
- Data-Driven Hill Initialization: Hill parameters initialized from channel-specific SOV percentiles
Regularization Strategy
- Coefficient L2: Channel-specific regularization
- Sparsity Control: GRU parameter sparsity
- DAG Regularization: Acyclicity constraints (
triangularmask by default, or NOTEARS augmented Lagrangian — see below) - Gradient Clipping: Parameter-specific clipping
NOTEARS causal structure learning (opt-in)
By default, acyclicity is enforced with an upper-triangular adjacency mask (dag_mode: 'triangular'). To learn channel ordering from data using the NOTEARS smooth penalty h(W) = tr(exp(W ⊙ W)) − d, set dag_mode: 'notears'.
| Mode | Config | When to use |
|---|---|---|
| Triangular (default) | dag_mode: 'triangular' |
Stable default; fixed channel order |
| NOTEARS (opt-in) | dag_mode: 'notears' |
Data-driven causal hierarchy between channels |
from deepcausalmmm.core import get_default_config
from deepcausalmmm.core.trainer import ModelTrainer
from deepcausalmmm.core.data import UnifiedDataPipeline
config = get_default_config()
config['dag_mode'] = 'notears'
config['notears_warmup_epochs'] = 500 # Huber-only first, then acyclicity penalty
config['notears_lambda1'] = 0.005
config['dag_temperature'] = 0.5
config['notears_group_l1'] = 0.01
config['notears_threshold'] = 0.3 # Pruning for plots / export
pipeline = UnifiedDataPipeline(config)
# ... prepare tensors and train/holdout split ...
trainer = ModelTrainer(config)
model = trainer.create_model(n_media, n_control, n_regions)
trainer.create_optimizer_and_scheduler()
trainer.train(
train_tensors['X_media'], train_tensors['X_control'],
train_tensors['R'], train_tensors['y'],
holdout_tensors['X_media'], holdout_tensors['X_control'],
holdout_tensors['R'], holdout_tensors['y'],
pipeline=pipeline,
verbose=True, # logs [NOTEARS] warmup and dual updates
)
Inspect the learned graph (canonical adjacency uses mask + temperature; optional pruning):
W = model.threshold_dag(eps=config['notears_threshold'])
from deepcausalmmm.core.inference import InferenceManager
manager = InferenceManager(model, config=config)
adj_pruned = manager.get_dag_adjacency(threshold=True, eps=config['notears_threshold'])
adj_continuous = manager.get_dag_adjacency(threshold=False)
Huber prediction loss is unchanged; NOTEARS adds terms to get_dag_loss() only. Dashboard / HTML DAG plots: python examples/dashboard_rmse_optimized.py (exports dag_adjacency.csv).
| Key | Role |
|---|---|
dag_mode |
'triangular' or 'notears' |
notears_warmup_epochs |
Fit-only epochs before the DAG penalty activates |
notears_lambda1 |
L1 sparsity on adjacency |
notears_dual_update_every |
Augmented-Lagrangian dual update frequency |
notears_dual_factor |
Penalty growth when acyclicity stalls |
notears_threshold |
Pruning cutoff for threshold_dag() / exports |
dag_temperature |
Edge sharpness in forward pass and adjacency export |
notears_group_l1 |
Focused parent sets per channel |
The optional training-time NOTEARS mode above is distinct from the mandatory post-fit causal scenario DAG. See DAG and NOTEARS structure learning, the causal scenario guide, and v2.0.0 release notes.
Response Curves
- Hill Saturation Modeling: Non-linear response curves with Hill equations
- Data-Driven Initialization: Hill
gparameter initialized from channel-specific SOV 60th percentile - Automatic Curve Fitting: Fits S-shaped saturation curves to channel data
- National-Level Aggregation: Aggregates DMA-week data to national weekly level
- Linear Scaling: Direct scaling with prediction_scale × y_mean for accurate attribution
- Interactive Visualizations: Plotly-based interactive response curve plots
- Performance Metrics: R², slope, and saturation point for each channel
import pandas as pd
import numpy as np
from deepcausalmmm.postprocess import ResponseCurveFit
# After training your model, prepare channel data for response curve fitting
# The data should have 'week_monday', 'spend', 'impressions', and 'predicted' columns
# Example: Create channel data from your model results
# Replace this with actual data extraction from your trained model
n_weeks = 104
channel_data = pd.DataFrame({
'week_monday': pd.date_range('2024-01-01', periods=n_weeks, freq='W'),
'spend': np.random.uniform(10000, 50000, n_weeks), # Replace with actual spend
'impressions': np.random.uniform(100000, 500000, n_weeks), # Replace with actual impressions
'predicted': np.random.uniform(1000, 5000, n_weeks) # Replace with model predictions
})
# Fit response curves to channel data
fitter = ResponseCurveFit(
data=channel_data,
model_level='Overall',
date_col='week_monday'
)
# Fit the curve and generate visualization
fitter.fit(
x_label='Impressions',
y_label='Predicted KPI Units',
title='Channel Response Curve',
save_figure=True,
output_path='response_curve.html'
)
print(f"Slope: {fitter.slope:.3f}, Saturation: {fitter.saturation:.0f}, R²: {fitter.r_2:.3f}")
Budget Optimization
- Constrained Optimization: Find optimal budget allocation across channels
- Multiple Methods: SLSQP (default), trust-constr, differential evolution, hybrid
- Hill Equation Integration: Uses fitted response curves for saturation modeling
- Channel Constraints: Set min/max spend limits based on business requirements
- Scenario Comparison: Compare current vs optimal allocations
- ROI Maximization: Maximize predicted response subject to budget and constraints
import pandas as pd
from deepcausalmmm import optimize_budget_from_curves
# After training your model and fitting response curves...
# Create a DataFrame with fitted curve parameters for each channel
# Replace this with actual fitted parameters from your response curve fitting
fitted_curves_df = pd.DataFrame({
'channel': ['TV', 'Search', 'Social', 'Display', 'Radio'],
'top': [2.5, 3.0, 2.2, 1.8, 2.0], # Hill parameter (slope at inflection)
'bottom': [0.0, 0.0, 0.0, 0.0, 0.0], # Minimum response
'saturation': [500000, 300000, 200000, 150000, 400000], # Saturation point (impressions)
'slope': [0.002, 0.003, 0.004, 0.002, 0.001] # Initial slope
})
# Optimize budget allocation
result = optimize_budget_from_curves(
budget=1_000_000,
curve_params=fitted_curves_df,
num_weeks=52,
constraints={
'TV': {'lower': 100000, 'upper': 600000},
'Search': {'lower': 150000, 'upper': 500000},
'Social': {'lower': 50000, 'upper': 300000}
},
method='SLSQP'
)
# View results
if result.success:
print(f"Optimal Allocation: {result.allocation}")
print(f"Predicted Response: {result.predicted_response:,.0f}")
print(result.by_channel)
Example Output:
Optimal Allocation: {'TV': 100000, 'Search': 420000, 'Social': 300000, ...}
Predicted Response: 627,788
Detailed Metrics:
channel total_spend weekly_spend roi spend_pct response_pct saturation_pct
Search 420,000 8,076.92 0.56 42.0% 37.8% 323%
Social 300,000 5,769.23 0.73 30.0% 34.8% 288%
TV 100,000 1,923.08 0.13 10.0% 2.1% 64%
See examples/example_budget_optimization.py for complete workflow and tips.
Benchmarks
Example Validation (190 regions, 109 weeks, 13 channels, 7 controls):
- Training R²: 0.950 | Holdout R²: 0.842
- Performance Gap: 10.8% (indicating good generalization)
- Generalization Gap: 10.8% (reasonable out-of-sample performance)
- Temporal Split: Default
holdout_ratio = 0.12in config—about 96 training weeks and 13 holdout weeks on 109 observed weeks (burn-in padding in the pipeline may change logged lengths slightly)
Development
Requirements
- Python 3.9+
- PyTorch 2.0+
- pandas 1.5+
- numpy 1.21+ (package metadata caps below 2.0)
- scipy 1.7+
- plotly 5.0+
- NetworkX 2.6+
- statsmodels 0.13+
- scikit-learn 1.0+
- tqdm 4.60+
Testing
python -m pytest tests/
Contributing
See CONTRIBUTING.md for development guidelines.
License
MIT License - see LICENSE file.
Support
- Documentation: Includes a comprehensive README with examples
- Issues: Use GitHub issues for bug reports and feature requests
Documentation
- Full Documentation: deepcausalmmm.readthedocs.io
- Quick Start Guide: Installation & Usage
- API Reference: Complete API Documentation
- Tutorials: Step-by-step Guides
- Examples: Practical Use Cases
Roadmap
Version 2.0.0
- Mandatory causal scenario layer: standard training now produces a conditional NOTEARS intervention DAG, DMA-week-channel structural scenario CSV, JSON diagnostics, and Graphviz SVG. The GRU prediction loss remains unchanged. See the release notes and causal scenario guide.
Future
- Causal allocation and validation: additive causal-Shapley allocation, faster parallel stability selection, and calibration against geo-lift or other experiments.
Citation
If you use DeepCausalMMM in your work, please cite:
@article{puttaparthitirumala2026deepcausalmmm,
title = {{DeepCausalMMM: A Deep Learning Framework for Marketing Mix Modeling with Causal Structure Learning}},
author = {Puttaparthi Tirumala, Aditya},
journal = {Journal of Open Source Software},
publisher = {The Open Journal},
volume = {11},
number = {120},
pages = {9914},
month = apr,
year = {2026},
doi = {10.21105/joss.09914},
url = {https://doi.org/10.21105/joss.09914},
eprint = {2510.13087},
archivePrefix = {arXiv},
primaryClass = {cs.LG}
}
Or click the "Cite this repository" button on GitHub for other citation formats (APA, Chicago, MLA).
Quick Links
- Release notes (v2.0.0):
release_notes/2.0.0.md - Causal scenario DAG:
deepcausalmmm/core/conditional_notears.pyanddeepcausalmmm/core/causal_attribution.py - Main Dashboard:
dashboard_rmse_optimized.py- Complete analysis pipeline - Budget Optimization:
examples/example_budget_optimization.py- End-to-end optimization workflow - Core Model:
deepcausalmmm/core/unified_model.py- DeepCausalMMM architecture - Configuration:
deepcausalmmm/core/config.py- All tunable parameters - Data Pipeline:
deepcausalmmm/core/data.py- Data processing and scaling
DeepCausalMMM - Where Deep Learning meets Causal Inference for Superior Marketing Mix Modeling
arXiv - https://www.arxiv.org/abs/2510.13087 JOSS Publication - https://joss.theoj.org/papers/10.21105/joss.09914
Metadata
Release files for deepcausalmmm 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deepcausalmmm-2.0.0.tar.gz | 1.9 MB | Without provenance | Details for deepcausalmmm-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deepcausalmmm-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for deepcausalmmm-2.0.0-py3-none-any.whl |
Total release size: 2.0 MB
Release files / deepcausalmmm-2.0.0.tar.gz
| Download URL | deepcausalmmm-2.0.0.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67fd98f08574d5fb07dd8c750c3a016568816282d6a4d8f8561769e123a44623
|
|
BLAKE2b-256 checksum How to use checksums |
db65f7a864fc5e30ef8fa04fc41cbf284e655e567590933eff5c16ff09d04a05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / deepcausalmmm-2.0.0-py3-none-any.whl
| Download URL | deepcausalmmm-2.0.0-py3-none-any.whl |
|---|---|
| Size | 131.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a07b08b73dd7eb6567f5e95d16eb8b8c36a4d752ec8551045c597435cae67003
|
|
BLAKE2b-256 checksum How to use checksums |
8b6b39cbc966db8f0be9eaeef2b399060287d99c0f57eaa73c2f3f3f775f416d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for deepcausalmmm 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.