Skip to content

Commit b60ba90

Browse files
committed
Add TransR
1 parent 75be1fc commit b60ba90

File tree

5 files changed

+822
-3
lines changed

5 files changed

+822
-3
lines changed

transE_Bernoulli_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def __init__(self):
301301
#if USE_CUDA:
302302
#model.cuda()
303303

304-
# Check the result on validation set for every 5 epochs
304+
# Evaluate on validation set for every 5 epochs
305305
elif epoch % 5 == 0:
306306
ent_embeddings = model.ent_embeddings.weight.data.cpu().numpy()
307307
rel_embeddings = model.rel_embeddings.weight.data.cpu().numpy()

transH_Bernoulli_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def __init__(self):
312312
#if USE_CUDA:
313313
#model.cuda()
314314

315-
# Check the result on validation set for every 5 epochs
315+
# Evaluate on validation set for every 5 epochs
316316
elif epoch % 5 == 0:
317317
ent_embeddings = model.ent_embeddings.weight.data
318318
rel_embeddings = model.rel_embeddings.weight.data

transH_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def __init__(self):
304304
#if USE_CUDA:
305305
#model.cuda()
306306

307-
# Check the result on validation set for every 5 epochs
307+
# Evaluate on validation set for every 5 epochs
308308
elif epoch % 5 == 0:
309309
ent_embeddings = model.ent_embeddings.weight.data
310310
rel_embeddings = model.rel_embeddings.weight.data

0 commit comments

Comments
 (0)