S2P2 ==== Summary ------- A continuous-time state-space model that evolves event-conditioned states and maps them to marked intensities. Intensity and objective ----------------------- ``forward`` builds the continuous-time state-space history using components from ``easy_tpp.ssm``. ``_get_intensity`` passes the evolved states through each layer's ``depth_pass`` and calls ``IntensityNet`` on the resulting residual-stream representation: .. math:: \lambda_k(t)=\operatorname{ScaledSoftplus}_k([W r(t)+b]_k). Here :math:`r(t)` denotes the residual-stream representation passed to the intensity network. ``_evolve_and_get_intensity_at_sampled_dts`` evolves the same representation at quadrature times. The loss is the negative marked event log-intensity sum plus the integrated total intensity, using the shared :doc:`../likelihood_integration` helper. Implementation: `easy_tpp/model/s2p2.py `_. The formulas above summarize this implementation, including its numerical choices, rather than asserting equivalence to every variant in the reference. Original reference ------------------ `Deep Continuous-Time State-Space Models for Marked Event Sequences `_ (as listed in the repository README). Shipped preset -------------- This is the packaged model fragment. :doc:`/user_manual/configuration` explains how it merges with the dataset and shared trainer presets. .. literalinclude:: ../../../../easy_tpp/configs/model/S2P2.yaml :language: yaml API --- :class:`easy_tpp.model.S2P2` ยท :doc:`/api/models`