WSMTHP ====== Summary ------- A causal Transformer trained with weighted score matching and a mark cross-entropy objective; evaluation follows a likelihood path. Intensity and objective ----------------------- ``_get_intensity`` uses history-dependent slope and base heads: .. math:: \lambda_k(u\mid h)=\operatorname{softplus} \left(\tanh(a_k(h))u+b_k(h)\right). ``_compute_score`` computes :math:`s=\partial_u\log\lambda_{\mathrm{tot}}-\lambda_{\mathrm{tot}}`. In training, ``loglike_loss`` sums :math:`\tfrac12 w s^2+w\,\partial_u s+s\,\partial_u w`, with mark cross-entropy and an optional survival loss. ``_wsm_weights`` selects the weighting function. Validation and testing call ``nll_loss``, which uses sampled likelihood integration instead of the training objective. Survival-related options and prediction corrections are implemented in ``wsm_thp.py``; the shipped preset leaves survival loss disabled. Implementation: `easy_tpp/model/wsm_thp.py `_. The formulas above summarize this implementation, including its numerical choices, rather than asserting equivalence to every variant in the reference. Original reference ------------------ `Is Score Matching Suitable for Estimating Point Processes? `_ (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/WSMTHP.yaml :language: yaml API --- :class:`easy_tpp.model.WSMTHP` ยท :doc:`/api/models`