-
Notifications
You must be signed in to change notification settings - Fork 3
/
complex-yago3-10-sequential.yaml
95 lines (94 loc) · 1.73 KB
/
complex-yago3-10-sequential.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
complex:
entity_embedder:
dropout: -0.3128825817257166
regularize_weight: 1.0274165130442088e-15
relation_embedder:
dropout: 0.1540917595848441
regularize_weight: 2.934669571854759e-10
dataset:
files:
test:
size: 5000
test_without_unseen:
filename: test_without_unseen.del
size: 4982
type: triples
train:
size: 1079040
train_sample:
filename: train_sample.del
size: 5000
type: triples
valid:
size: 5000
valid_without_unseen:
filename: valid_without_unseen.del
size: 4978
type: triples
name: yago3-10
num_entities: 123182
num_relations: 37
entity_ranking:
chunk_size: 25000
metrics_per:
relation_type: true
eval:
batch_size: 256
trace_level: example
import:
- complex
lookup_embedder:
dim: 128
initialize: uniform_
initialize_args:
normal_:
mean: 0.0
std: 0.036423597922559676
uniform_:
a: -0.4357536096219625
xavier_normal_:
gain: 1.0
xavier_uniform_:
gain: 1.0
pretrain:
ensure_all: true
regularize_args:
p: 3
weighted: true
sparse: true
model: complex
modules:
- kge.job
- kge.model.embedder
- kge.model
negative_sampling:
implementation: batch
num_samples:
o: 8942
s: 8919
shared: true
shared_type: naive
with_replacement: false
train:
auto_correct: true
batch_size: 1024
loss_arg: 1.0
lr_scheduler: ReduceLROnPlateau
lr_scheduler_args:
factor: 0.95
mode: max
patience: 5
threshold: 0.0001
max_epochs: 3
num_workers: 4
optimizer:
default:
args:
lr: 0.22584037828361303
type: negative_sampling
valid:
early_stopping:
patience: 10
threshold:
epochs: 10
metric_value: 0.1