Skip to main content
Version: 3.20.1

uam

uam combines aggregated attribution with customer journey information. It uses D_variables to map each input signal to a final channel, measure, and mandatory prior_weight. If journey paths are provided, the aggregated baseline is adjusted with path-based Markov information; otherwise, UAM returns the aggregated baseline only.

PARAMETERTYPEDEFAULTDESCRIPTION
df_aggrdata.frame / tablerequiredAggregated dataset containing a timestamp column, the target column, and the marketing or business signal columns used for attribution.
D_variablesdata.frame / tablerequiredMapping table with one row per input signal. It must contain variable, channel, measure, and prior_weight. prior_weight is the business weight assigned to each raw signal. A common way to estimate it is conversions / touchpoints or conversions / cost, but it can also be set from domain knowledge or historical benchmarks.
targetstringrequiredName of the target column in df_aggr. The target must exist in df_aggr and must not be included in D_variables.
df_pathsdata.frame / tableoptionalCustomer journey data. It can contain serialized paths or event-level journeys, depending on the columns supplied.
baseline_modelstring"linear"Aggregated attribution engine used as UAM baseline. Allowed values are "linear", "reward", and "copula".
var_pathstring"path"Column containing serialized journeys when aggregated path data is provided.
var_convstring"total_conversions"Column containing the number of conversions associated with each path.
var_nullstring"total_null"Column containing null-path counts when available.
channel_convstring"((CONV))"Conversion marker used when df_paths is provided as event-level journey data.
max_pinteger12Maximum lag depth considered by the aggregated baseline.
nsiminteger1000Simulation parameter used by model components that require simulation, kept for API consistency.
seedinteger1234567Random seed used for reproducible results where random or simulation-based components are involved.
verboseinteger / bool1Controls runtime logging. Use 0 or False to reduce printed output.
orderinteger1Markov model order used by the path-based component.
sepstring">"Path separator used inside serialized journey strings.
ncoreinteger1Number of cores used by supported computation steps.
passwordstringoptionalChannelAttributionPro license token.

Example structure for D_variables:

variablechannelmeasureprior_weight
google_clicksgoogle_adsclicks0.25
google_impressionsgoogle_adsimpressions0.015
facebook_impressionsfacebook_adsimpressions0.015
email_clicksemailclicks0.30
direct_searchesdirectsearches0.50