forked from NTMC-Community/MatchZoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrmm_tks_quoraqp.config
78 lines (77 loc) · 1.99 KB
/
drmm_tks_quoraqp.config
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
{
"net_name": "DRMM_TKS",
"global":{
"model_type": "PY",
"weights_file": "examples/QuoraQP/weights/drmm_tks.quoraqp.weights",
"save_weights_iters": 500,
"num_iters": 500,
"display_interval": 10,
"test_weights_iters": 500,
"optimizer": "adam",
"learning_rate": 0.001
},
"inputs": {
"share": {
"text1_corpus": "./data/QuoraQP/corpus_preprocessed.txt",
"text2_corpus": "./data/QuoraQP/corpus_preprocessed.txt",
"use_dpool": false,
"embed_size": 300,
"embed_path": "./data/QuoraQP/embed_glove_d300",
"vocab_size": 28159,
"train_embed": false,
"target_mode": "classification",
"class_num": 2,
"text1_maxlen": 20,
"text2_maxlen": 20
},
"train": {
"input_type": "PointGenerator",
"phase": "TRAIN",
"use_iter": false,
"query_per_iter": 50,
"batch_per_iter": 5,
"batch_size": 1024,
"relation_file": "./data/QuoraQP/relation_train.txt"
},
"valid": {
"input_type": "PointGenerator",
"phase": "EVAL",
"batch_size": 1024,
"relation_file": "./data/QuoraQP/relation_valid.txt"
},
"test": {
"input_type": "PointGenerator",
"phase": "EVAL",
"batch_size": 1024,
"relation_file": "./data/QuoraQP/relation_test.txt"
},
"predict": {
"input_type": "PointGenerator",
"phase": "PREDICT",
"batch_size": 1024,
"relation_file": "./data/QuoraQP/relation_test.txt"
}
},
"outputs": {
"predict": {
"save_format": "TREC",
"save_path": "predict.test.quoraqp.txt"
}
},
"model": {
"model_path": "./matchzoo/models/",
"model_py": "drmm_tks.DRMM_TKS",
"setting": {
"topk": 20,
"num_layers": 3,
"hidden_sizes": [100, 80, 1]
}
},
"losses": [
{
"object_name": "categorical_crossentropy",
"object_params": {}
}
],
"metrics": [ "accuracy" ]
}