LogisticSaturation.apply#

LogisticSaturation.apply(x, dims=None)#

Call within a model context.

Used internally of the MMM to apply the transformation to the data.

Parameters:
xpt.TensorLike

The data to be transformed.

dimsstr, sequence[str], optional

The dims of the parameters. Defaults to None. Not the dims of the data!

Returns:
pt.TensorVariable

The transformed data.

Examples

Call the function for custom use-case

import pymc as pm

transformation = ...

coords = {"channel": ["TV", "Radio", "Digital"]}
with pm.Model(coords=coords):
    transformed_data = transformation.apply(data, dims="channel")