Skip to main content

Module kernel

Module kernel 

Source
Expand description

Numeric kernels for identifiability-theorem diagnostics.

The kernels return scalar facts for iVAE auxiliary richness, decoder Jacobian sparsity, and manifold-SAE anchor coverage. Rust, Python, and CLI layers turn those facts into user-facing reports.

Structs§

AnchorConsistencyMetrics
Scalar facts about the per-atom anchor structure of an assignment matrix.
AuxRichnessMetrics
Scalar facts about the auxiliary covariate / latent pair feeding an iVAE.
JacobianSparsityMetrics
Scalar facts about decoder Jacobian sparsity.

Functions§

anchor_consistency_metrics
Compute anchor counts from an assignment matrix.
aux_richness_metrics
Compute the iVAE auxiliary-richness numeric facts.
concat_decoder_blocks
Stack a list of per-atom decoder blocks (each shape (basis_size_k, P)) column-wise into a single Jacobian of shape (P, sum_k basis_size_k). Used by the Python diagnostics dispatcher to feed jacobian_sparsity_metrics from a ManifoldSAE.decoder_blocks payload without doing the concatenation in Python.
jacobian_sparsity_metrics
Compute mean sparsity and per-sample rank of a stack of Jacobians.