AttNHP ====== Summary ------- An attention-based continuous-time history encoder that combines event and temporal embeddings at event and queried times. Intensity and objective ----------------------- ``forward_pass`` constructs query-time representations from the history, with per-head outputs concatenated before ``layer_intensity``: .. math:: \lambda_k(t\mid\mathcal H_t)=\operatorname{ScaledSoftplus}_k ([W h(t,\mathcal H_t)+b]_k). The time-dependent representation is recomputed at sampled query times; it is not the exponential cell decay used by NHP. 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/attnhp.py `_. The formulas above summarize this implementation, including its numerical choices, rather than asserting equivalence to every variant in the reference. Original reference ------------------ `Transformer Embeddings of Irregularly Spaced Events and Their Participants `_ (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/AttNHP.yaml :language: yaml API --- :class:`easy_tpp.model.AttNHP` ยท :doc:`/api/models`