mixle.stats.compute.capabilities module¶
Distribution capability metadata for engine and planner decisions.
- delegated_engine_ready(child_engine_ready)[source]
Engines a delegating wrapper (Weighted/Ignored/Transform) may report: the child’s engines capped to the composition-safe set. A no-op for numpy/torch children; it only drops leaf-only engines the wrapper kernel has not been verified to support.
- class DistributionCapabilities(engine_ready=('numpy',), kernel_status='generic', numpy_only_reason=None)[source]
Bases:
objectRuntime capability metadata for a distribution family.
- kernel_status: str = 'generic'
- supports_engine(engine)[source]
Return whether this metadata allows execution on
engine.
- property is_permanently_numpy_only: bool
Return true for families intentionally excluded from tensor engines.
- register_capabilities(dist_type, capabilities)[source]
Register capability metadata for a distribution class.
- registered_capability_types()[source]
Return distribution classes with explicitly registered capabilities.
- numpy_only_distribution_types()[source]
Return families intentionally kept on the NumPy execution path.
This excludes transitional
legacy_numpyfamilies: those may gain backend declarations later. The returned families have permanent distribution-owned reasons explaining why generic tensor engines are not a good fit.
- capabilities_for(x)[source]
Return registered capabilities for a distribution instance or class.
- Parameters:
x (Any)
- Return type:
DistributionCapabilities
- intersect_engine_ready(children, preferred_order=COMPOSITION_ENGINES)[source]
Return the engine names supported by every child distribution.