Log#
- class bayesflow.adapters.transforms.Log(*, p1: bool = False)[source]#
Bases:
ElementwiseTransform
Log transforms a variable.
- Parameters:
- p1boolean
Add 1 to the input before taking the logarithm?
Examples
>>> adapter = bf.Adapter().log(["x"])