config.yaml 1.3 KB
Newer Older
L
liweibin 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
task_name: train.metapath2vec
use_cuda: True
log_level: info 
seed: 1667

sampler:
    type:
    args:
        data_path: ./data/net_aminer/
        author_label_file: ./data/label/googlescholar.8area.author.label.txt
        venue_label_file: ./data/label/googlescholar.8area.venue.label.txt
        output_path: ./data/out_aminer_CPAPC/
        new_author_label_file: author_label.txt
        new_venue_label_file: venue_label.txt
        walk_saved_path: walks/
16
        walk_batch_size: 1000
L
liweibin 已提交
17 18
        num_walks: 1000
        walk_length: 100
19 20 21
        num_sample_workers: 16
        first_node_type: conf
        metapath: c2p-p2a-a2p-p2c  #conf-paper-author-paper-conf
L
liweibin 已提交
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

optimizer:
    type: Adam
    args:
        lr: 0.005
        end_lr: 0.0001

trainer:
    type: trainer
    args:
        epochs: 5
        log_dir: logs/
        save_dir: checkpoints/
        output_dir: outputs/
        num_sample_workers: 8
    
data_loader:
    type: Dataset
    args:
        input_path: ./data/out_aminer_CPAPC/  # same path as output_path in sampler
        walk_path: walks/*
        word2id_file: word2id.pkl
        batch_size: 32
L
liweibin 已提交
45
        win_size: 5  # default: 7
L
liweibin 已提交
46 47
        neg_num: 5
        min_count: 10
L
liweibin 已提交
48
        paper_start_index: 1697414
L
liweibin 已提交
49 50 51 52 53

model:
    type: SkipgramModel
    args:
        embed_dim: 128