Expand description
State Visualization and Attention Pattern Analysis
Provides tools for visualizing internal SSM states, gating patterns, and phase portraits — all in pure Rust with no external plotting dependencies.
§Overview
ActivationHistogram: 2D histogram of activation distributions across dimsGatingPatternRecorder: Records and analyzes SSM gating weights over timePhasePortrait: PCA projection, divergence, fixed-point and periodicity analysismatrix_to_csv: Export Array2 to CSV-formatted Stringsignal_to_svg_sparkline: Export 1D signal as inline SVG sparkline
Structs§
- Activation
Histogram - 2D histogram of activation distributions across sequence steps.
- Gating
Pattern Recorder - Records SSM gating weights over time and provides cross-correlation analysis.
- Phase
Portrait - SSM state trajectory visualizer with phase portrait, PCA projection, and attractor analysis.
Functions§
- matrix_
to_ csv - Export a
(rows, cols)matrix to CSV-like text. - signal_
to_ svg_ sparkline - Render a 1D signal as an inline SVG sparkline.