ConsiderationInstruments#
- class pymc_marketing.customer_choice.consideration_set_logit.ConsiderationInstruments[source]#
Typed dict for consideration instrument inputs.
- Attributes:
- Z_tilde
np.ndarray Mean-centred instruments, shape (N, J) or (N, J, K_z). Required.
- z_instrument_names
list[str] Names for the K_z instrument dimensions. Length must equal K_z. Optional; defaults to
["z_0", "z_1", ...].
- Z_tilde
Methods
ConsiderationInstruments.__init__(*args, ...)ConsiderationInstruments.fromkeys(iterable)Create a new dictionary with keys from iterable and values set to value.
ConsiderationInstruments.get(key[, default])Return the value for key if key is in the dictionary, else default.
ConsiderationInstruments.pop(key[, default])If the key is not found, return the default if given; otherwise, raise a KeyError.
Remove and return a (key, value) pair as a 2-tuple.
ConsiderationInstruments.setdefault(key[, ...])Insert key with a value of default if key is not in the dictionary.
ConsiderationInstruments.update([E, ]**F)If E is present and has a .keys() method, then does: for k in E.keys(): D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
Attributes
Z_tildez_instrument_names