The sample code in README.md has typo. I figured it out after seeing IndexError.
from skge import HolE, StochasticTrainer
# Load knowledge graph
# N = number of entities
# M = number of relations
# xs = list of (subject, object, predicte) triples
# ys = list of truth values for triples (1 = true, -1 = false)
N, M, xs, ys = load_data('path to data')
# instantiate HolE with an embedding space of size 100
model = HolE((N, N, M), 100)
The sample code in README.md has typo. I figured it out after seeing IndexError.
The order of
(N, N, M)
must be(N, M, N)
.