-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigs.py
52 lines (42 loc) · 1.54 KB
/
configs.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
class SimpleConfig(object):
"""
Holds model hyperparams and data information.
The config class is used to store various hyperparameters and dataset
information parameters. Model objects are passed a Config() object at
instantiation.
"""
# Hyperparameters
lr = 0.00005 # Learning Rate
l2 = 0.001 # L2 Loss Coefficient
dropout = 0.5 # Dropout Rate
batch_size = 32 # SGD Batch Size
epochs = 20 # Number of Training Epochs
threshold = 0.5 # Threshold for accurate classification
# Data Processing
image_size = 64 # resize image to image_size*image_size
channels = 3 # Channel Size
valid_size = 0.1
# Saver
model_name = 'simple'
ckpt_path = 'ckpt/' + model_name
class DeepConfig(object):
"""
Holds model hyperparams and data information.
The config class is used to store various hyperparameters and dataset
information parameters. Model objects are passed a Config() object at
instantiation.
"""
# Hyperparameters
lr = 0.0001 # Learning Rate
l2 = 0.001 # L2 Loss Coefficient
dropout = 0.5 # Dropout Rate
batch_size = 32 # SGD Batch Size
epochs = 25 # Number of Training Epochs
threshold = 0.5 # Threshold for accurate classification
# Data Processing
image_size = 64 # resize image to image_size*image_size
channels = 3 # Channel Size
valid_size = 0.1
# Saver
model_name = 'deep'
ckpt_path = 'ckpt/' + model_name