Skip to main content

Module advanced_models

Module advanced_models 

Source
Expand description

Advanced Knowledge Graph Embedding Models

Implements RotatE+, PairRE, and RESCAL — three advanced KG embedding models that handle complex relation patterns including phase-space operations, 1-N/N-N relations, and bilinear scoring.

Structs§

Lcg
Simple LCG (Linear Congruential Generator) for deterministic initialization without external rand dependency.
PairRE
PairRE: Handles 1-N, N-1, and N-N relations with paired relation vectors.
Rescal
RESCAL: Bilinear model for knowledge graph embedding.
RotatEPlus
RotatE+ with phase-space operations.