Skip to content

v0.3.0

Choose a tag to compare

@dttutty dttutty released this 07 Nov 07:12

frost train events.csv now uses TGN with a shared, configurable starter preset.

python -m pip install ./frost_gnn-0.3.0-cp312-cp312-manylinux_2_31_x86_64.whl
frost train events.csv
frost train --show-config
frost train events.csv --config settings.yaml --epochs 20
frost train events.csv --model tgat --output tgat.pt

Starter settings: one-hop recent sampling (10 neighbors), GRU memory, 128-dimensional embeddings/memory/time encoding, two attention heads, dropout 0.2, 10 epochs, batch size 200, Adam at 0.001, seed 42, CPU with four threads. Settings live in configs/predict.yaml; CLI flags override custom YAML, which overrides bundled defaults. Unknown keys and invalid values fail before training. Resolved settings are saved with the checkpoint.

TGN uses the existing FROST temporal attention encoder, GRU memory updater and additive link head. Memory resets each epoch, positive endpoints publish last-message mailboxes after chronological batches, and equal-time groups share a frozen memory snapshot. Before saving, history is replayed with the final weights. Prediction reads the saved memory and pending messages without updating state. TGAT remains selectable, and 0.2.0 TGAT checkpoints remain loadable.

The simple predictor still requires nodes seen in training. Output scores are uncalibrated ranking scores. Queries before the training cutoff remain rejected, and test CSV rows never become training events.

Private distribution only; not published on PyPI. Target: Linux x86-64, glibc 2.31+, Python 3.12 and PyTorch 2.9.0. Existing advanced multi-GPU entry points are unchanged. If upgrading directly from FROST 0.1.0, first uninstall the old frost distribution; 0.2.0 users can upgrade the frost_gnn wheel directly.

Validation: 583 library CPU tests passed (8 skipped), 129 parent-project tests passed, and 65 tests passed (1 skipped) against the exact wheel on an AVX2 CPU path with source-checkout imports disabled. These include memory learning, equal-time causality, final-weight replay, read-only queries, configuration precedence and legacy checkpoint compatibility. Ruff, mypy and package metadata validation passed. No GPU job was run. See BUILD_INFO.json and SHA256SUMS for provenance and integrity.

The pre-existing TPNet snapshot comparison now allows measured CPU rounding differences in gradient/parameter summaries. Losses, predictions and projection state retain the tighter checks, and sampling remains exact. TPNet runtime code and the upstream reference values are unchanged.