Introduction#

EasyTPP is a PyTorch toolkit for temporal point processes: models of when events occur and which event types occur next. Its configurable pipeline covers data processing, training, evaluation, and generation.

Framework#

The package separates the experiment into modules that can be customized:

Module

Role

Preprocessing

Loads event sequences, pads batches, and creates masks.

Models

Implements the eleven reference models.

Configuration

Combines dataset, model, trainer, and runner settings.

Runner

Controls training, evaluation, and recursive generation.

Prepare an experiment#

  1. Install EasyTPP from PyPI or a source checkout.

  2. Choose a preset and a dataset.

  3. Run the quick start or adapt the YAML pipeline.

The loader accepts local pickle, JSON, and JSON lines files, as well as Hub datasets. Both representations supply event times, inter-event times, event types, and the number of types; Data loading describes their schemas and preprocessing.

Explore Technical details for intensity formulations and numerical choices, or API reference for the public interfaces. New models inherit from easy_tpp.model.BaseModel; see Customize a Model for the required methods and registration steps.