register_transition#
- hybrid_aif.register_transition(name, cls)[source]#
Register
cls, the class of aNonlinearGaussianTransition’sf, undername, so thatdescribe()writes such anfas its name and its fields andbuild()rebuilds it.nameis namespaced,"<package>.<name>"(at least one dot, each segment an identifier), so two packages cannot collide silently.clsis a callableequinox.Modulesubclass. The registration recordscls’s field schema: each field’s name and whether it is static (eqx.field(static=True)) or a leaf; a leaf’s shape is an instance’s, not the class’s, and is checked when the built System is validated. A name is registered once and a class under one name: registering a taken name, or a class already registered, raisesValueError. Returnscls. Design: docs/design/nonlinear-transitions.md N5.