iTHP ==== Summary ------- A candidate-type attention model following the original public-code architecture, with a separate positive intensity decoder for each mark. Intensity and objective ----------------------- ``_marked_intensity_chunks`` concatenates candidate-type and query-time embeddings, attends to preceding history, and applies a mark-specific linear decoder followed by softplus: .. math:: \lambda_k(t\mid\mathcal H_t)=\operatorname{softplus} (w_k^\top z_k(t,\mathcal H_t)+b_k). This is the executed public-code variant described in the class docstring; it is not a claim of the exact additive form of the original reference's Equation (7). The implementation conditions on the first event and uses per-sequence integration. ``integration_method`` selects ``mc``, ``trapezoid``, or ``fixed_grid``. Training may add the next-type cross-entropy term controlled by ``use_type_loss`` and ``type_loss_weight``; validation and testing use pure point-process NLL. The model requires ``num_layers: 1``, positive even ``hidden_size``, and ``model_specs.d_v`` equal to twice ``hidden_size``. ``num_heads`` is not used. See the class docstring for the documented architecture and integration differences from the original implementation. Implementation: `easy_tpp/model/ithp.py `_. The formulas above summarize this implementation, including its numerical choices, rather than asserting equivalence to every variant in the reference. Original reference ------------------ `Interpretable Transformer Hawkes 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/ITHP.yaml :language: yaml API --- :class:`easy_tpp.model.ITHP` ยท :doc:`/api/models`