rxmc.transforms.identity#
- rxmc.transforms.identity = Transform(identity)#
A numpy-style transform with optional parameters.
- Parameters:
fn (callable) –
fn(a, *values) -> np.ndarray; whencontextualisTrue,fn(context, a, *values)wherecontextis whatever the owner passes (theObservationfor model transforms).params (sequence of Parameter, optional) – Parameters whose sampled values are passed as
*values.contextual (bool, optional) – Whether
fntakes the owner’s context as its first argument.derivative (callable, optional) –
derivative(a, *values) -> np.ndarray, \(\partial fn/\partial a\) elementwise. Used for delta-method error propagation and Jacobians.inverse (Transform or callable, optional) – The inverse transform (parameter-free transforms only).
name (str, optional) – Human-readable name.