-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
25 lines (23 loc) · 806 Bytes
/
config.py
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
"""Main module."""
# Define here main default values
DEFAULT_OUT_DIR = "./runs"
DEFAULT_EMBEDDINGS_PATH = "./data/glove.6B/glove.6B.100d.txt"
DEFAULT_SAVE_DIR = "./dumps"
DEFAULT_OUT_DIR = "./runs"
DEFAULT_HPARAMS_CNN = {
"max_sequence_length": 120, # original 250
"max_num_words": 32000, # original 10000
"embedding_dim": 100,
"embedding_trainable": False,
"learning_rate": 0.00005,
"stop_early": True,
"es_patience": 5, # Only relevant if STOP_EARLY = True, original: 1
"es_min_delta": 0, # Only relevant if STOP_EARLY = True
"batch_size": 64, # original 128
"epochs": 30, # original 20
"dropout_rate": 0.3,
"cnn_filter_sizes": [128, 128, 128],
"cnn_kernel_sizes": [5, 5, 5],
"cnn_pooling_sizes": [5, 5, 40],
"verbose": True,
}