Skip to content

Commit c8f6903

Browse files
committed
udpate gatne config file
1 parent ced0005 commit c8f6903

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# configuration for GATNE
2+
3+
task_name: gatne.0712
4+
5+
# ------------------------Data Configuration--------------------------------------------#
6+
etype2files: "u2buy2t:./toy_data/u2buy2i.txt,u2click2i:./toy_data/u2click2i.txt"
7+
ntype2files: "u:./toy_data/node_types.txt,i:./toy_data/node_types.txt"
8+
symmetry: True
9+
shard_num: 1000
10+
# [ntype, name, feat_type, length]
11+
nfeat_info: null
12+
slots: []
13+
14+
meta_path: "u2buy2i-i2buy2u;u2click2i-i2click2u;i2buy2u-u2buy2i;i2click2u-u2click2i"
15+
16+
17+
walk_len: 4
18+
win_size: 3
19+
neg_num: 10
20+
walk_times: 10
21+
22+
23+
# -----------------Model HyperParams Configuration--------------------------------------#
24+
dataset_type: SageDataset
25+
collatefn: SageCollateFn
26+
model_type: SageModel
27+
warm_start_from: null
28+
num_nodes: 5500
29+
embed_size: 64
30+
hidden_size: 64
31+
res_alpha: 0.9
32+
33+
sage_mode: True
34+
sage_layer_type: LightGCNConv
35+
sage_act: null
36+
interact_mode: gatne
37+
sample_num_list: [10]
38+
infer_sample_num_list: [100]
39+
40+
# ----------------------Training Configuration------------------------------------------#
41+
epochs: 10
42+
num_workers: 1
43+
lr: 0.001
44+
lazy_mode: True
45+
batch_node_size: 20
46+
batch_pair_size: 100
47+
pair_stream_shuffle_size: 10000
48+
log_dir: ../../logs_custom
49+
output_dir: ../../outputs_custom
50+
save_dir: ../../ckpt_custom
51+
files2saved: ["*.yaml", "*.py", "*.sh", "./models", "./datasets", "./utils"]
52+
log_steps: 100
53+
54+
# -------------Distributed CPU Training Configuration-----------------------------------#
55+
56+
# if you want to save model per epoch, then save_steps will be set by below equation
57+
# save_steps = num_nodes * walk_len * win_size * walk_times / batch_pair_size / worker_num
58+
# but the equation is not very precise since the neighbors of each node is not the same.
59+
save_steps: 100000

0 commit comments

Comments
 (0)