forked from Darg-Iztech/Gender_Classification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.py
38 lines (28 loc) · 837 Bytes
/
params.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
26
27
28
29
30
31
32
33
34
35
36
37
38
class flags(object):
def __init__(self):
self.dev_sample_percentage = 0.1
self.word_embed_path = "./glove.twitter.27B.50d.txt"
self.char_embed_path = "./char_embeddings.27B.25d.txt"
self.model_path = "./models/cnnonly"
self.model_name = "model-14.ckpt"
self.log_path = "./runlogs_cnn.txt"
self.optimize = False
self.mode = "Test"
self.lang = "en"
# Model Hyperparameters
self.embedding_dim = 25
self.filter_sizes_cnn1 = "3,6"
self.num_filters = 75
self.dropout_keep_prob = 1.0
self.l2_reg_lambda = 0.0005
self.word_embedding_size = 50
self.learning_rate = 0.0001
self.num_classes = 2
self.sequence_length = 190
# Training parameters
self.batch_size = 100
self.num_epochs = 20
self.evaluate_every = 25
self.checkpoint_every = 1000000
self.num_checkpoints = 1
FLAGS = flags()