Registry /
data / marketing-attribution-models
Install & Compatibility
Where this runs
tested against v1.0.10 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 254.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 12.0s · import 0.000s · 243MB
257MB installed
● package 257MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AttributionModel
✓ from marketing_attribution_models import AttributionModel
✗ from marketing_attribution_models import AttributionModel
Create a HeuristicAttribution model with the 'linear' method and fit it to sample journey data.
import pandas as pd
from marketing_attribution_models import HeuristicAttribution
# Sample journey data
journeys = pd.DataFrame({
'path': ['A > B > C', 'A > C > B'],
'conversion': [1, 0],
'revenue': [100, 0]
})
model = HeuristicAttribution(method='linear')
result = model.attribution(journeys)
print(result)
Upgrade
Version history
1.0.10latest on PyPI · released Jul 11, 2022
Audit
Dependencies
pandasrequiredRequired for data manipulation and DataFrame operations
numpyrequiredUsed for numerical computations
matplotliboptionalUsed for plotting attribution results