safeguards
compression_safeguards.safeguards
Implementations for the provided Safeguards.
Modules:
-
abc–Abstract base class for the safeguards.
-
combinators–Implementations for the provided safeguard combinators.
-
eb–Error bounds that can be guaranteed by various safeguards.
-
pointwise–Implementations for the provided
PointwiseSafeguards. -
qois–Safeguarding Quantities of Interest
-
stencil–Implementations for the provided
StencilSafeguards.
Classes:
-
SafeguardKind–Enumeration of all supported safeguards:
SafeguardKind
Bases: Enum
Enumeration of all supported safeguards:
Methods:
-
from_config–Instantiate a safeguard from a configuration
dict.
lossless
class-attribute
instance-attribute
lossless = LosslessSafeguard
All elements must be reconstructed exactly, i.e. losslessly.
same
class-attribute
instance-attribute
same = SameValueSafeguard
Enforce that a special value is exactly preserved.
sign
class-attribute
instance-attribute
sign = SignPreservingSafeguard
Enforce that the sign (-1, 0, +1) of each element is preserved.
qoi_eb_pw
class-attribute
instance-attribute
qoi_eb_pw = PointwiseQuantityOfInterestErrorBoundSafeguard
Enforce an error bound on a pointwise derived quantity of interest.
qoi_eb_stencil
class-attribute
instance-attribute
qoi_eb_stencil = (
StencilQuantityOfInterestErrorBoundSafeguard
)
Enforce an error bound on a derived quantity of interest over a data neighbourhood.
all
class-attribute
instance-attribute
all = AllSafeguards
Enforce that all of the inner safeguards' guarantees are met.
any
class-attribute
instance-attribute
any = AnySafeguard
Enforce that any one of the inner safeguards' guarantees are met.
assume_safe
class-attribute
instance-attribute
assume_safe = AssumeAlwaysSafeguard
All elements are assumed to always be safe.
select
class-attribute
instance-attribute
select = SelectSafeguard
Select, pointwise, which safeguard's guarantees to enforce.
from_config
staticmethod
Instantiate a safeguard from a configuration dict.
The config must contain the safeguard's kind.
| Parameters: |
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|