NHP === Summary ------- A continuous-time LSTM whose cell state decays between events before a mark-specific intensity head is applied. Intensity and objective ----------------------- ``ContTimeLSTMCell.decay`` and ``NHP.layer_intensity`` implement .. math:: c(u)&=\bar c+(c-\bar c)\odot\exp(-\delta u),\\ h(u)&=o\odot\tanh(c(u)),\\ \lambda_k(u)&=\operatorname{ScaledSoftplus}_k([Wh(u)+b]_k). The softplus scale is learned for each mark. 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/nhp.py `_. The formulas above summarize this implementation, including its numerical choices, rather than asserting equivalence to every variant in the reference. Original reference ------------------ `The Neural Hawkes Process: A Neurally Self-Modulating Multivariate Point Process `_ (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/NHP.yaml :language: yaml API --- :class:`easy_tpp.model.NHP` ยท :doc:`/api/models`