ConsiderationInstruments#

class pymc_marketing.customer_choice.consideration_set_logit.ConsiderationInstruments[source]#

Typed dict for consideration instrument inputs.

Attributes:
Z_tildenp.ndarray

Mean-centred instruments, shape (N, J) or (N, J, K_z). Required.

z_instrument_nameslist[str]

Names for the K_z instrument dimensions. Length must equal K_z. Optional; defaults to ["z_0", "z_1", ...].

Methods

ConsiderationInstruments.__init__(*args, ...)

ConsiderationInstruments.clear()

ConsiderationInstruments.copy()

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.items()

ConsiderationInstruments.keys()

ConsiderationInstruments.pop(key[, default])

If the key is not found, return the default if given; otherwise, raise a KeyError.

ConsiderationInstruments.popitem(/)

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]

ConsiderationInstruments.values()

Attributes

Z_tilde

z_instrument_names