boundlab.zono.linearizers#
Sound affine enclosures of scalar non-linearities.
A linearizer maps elementwise input bounds \([l, u]\) to a
LinearBounds \((\lambda, \mu, \beta)\) certifying
Applying it keeps the input’s symbolic structure — x * slope + bias is a
linear map — and pays only the residual \(\pm\beta\) as fresh
Noise. Each linearizer below chooses \(\lambda\) to (approximately)
minimize \(\beta\), which for a fixed slope is half the range of
\(f(x) - \lambda x\) over \([l, u]\) (the Chebyshev center of the
residual).
Functions
Wrap a bounds function |
Classes
Chord-slope enclosure of \(e^x\). |
|
A sound enclosure |
|
|
|
Tangent-line enclosure of \(1/x\) on positive intervals. |
|
Triangle relaxation of ReLU. |
|
Minimal-derivative enclosure of \(\tanh\) (DeepZ-style). |