FullyNN ======= Summary ------- A recurrent encoder and a cumulative-hazard network, with intensities obtained by differentiating the hazard with respect to elapsed time. Intensity and objective ----------------------- ``CumulHazardFunctionNetwork._hazard_and_intensity`` computes a cumulative-hazard output :math:`H_k(u\mid h)` and its time derivative. With ``proper_marked_intensities: true``, the derivative is computed separately for each mark: .. math:: \lambda_k(u\mid h)=\frac{\partial H_k(u\mid h)}{\partial u}. The shipped preset instead sets ``proper_marked_intensities: false``. That path differentiates the sum of the hazard outputs and divides it equally among the event types. With :math:`K` event types, it uses .. math:: \lambda_k(u\mid h)=\frac{1}{K}\frac{\partial}{\partial u} \sum_j H_j(u\mid h). ``FullyNN.loglike_loss`` uses :math:`\sum_k[H_k(u)-H_k(0)]` as the integrated total intensity when ``subtract_zero_hazard: true`` (the default). The event term selects the observed mark's log derivative with a numerical epsilon. Setting ``subtract_zero_hazard: false`` retains the legacy integral. No numerical likelihood quadrature is needed in either mode of this loss. Implementation: `easy_tpp/model/fullynn.py `_. The formulas above summarize this implementation, including its numerical choices, rather than asserting equivalence to every variant in the reference. Original reference ------------------ `Fully Neural Network based Model for General Temporal 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/FullyNN.yaml :language: yaml API --- :class:`easy_tpp.model.FullyNN` ยท :doc:`/api/models`