smmargins.transforms.Logit¶
- smmargins.transforms.Logit = Transform(name='logit')¶
Analytic transformation of the linear predictor.
- Parameters:
value (callable) –
value(eta)returns the transformed scale, element-wise.grad (callable) –
grad(eta)returns the first derivativeλ'(eta), element-wise.hess (callable, optional) –
hess(eta)returns the second derivativeλ''(eta), element-wise. Required fordydxcalls; optional forpredictcalls.name (str, optional) – Human-readable name, used in result labels.
Notes
Custom transforms used in
Margins.dydxmust supply an analytichess. Autodiff is deliberately not supported — users who want it can wrap their ownTransformwithjax.gradetc.