You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 order of (N, N, M) must be (N, M, N).
model = HolE((N, M, N), 100)
The text was updated successfully, but these errors were encountered:
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)
.The text was updated successfully, but these errors were encountered: