Skip to content

Commit 61322ae

Browse files
committed
Fix:Minor(Config)
1 parent 0c7399c commit 61322ae

8 files changed

Lines changed: 16 additions & 25 deletions

File tree

config/CNN/NP/model_conf.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
"scale_by" : 0.5,
4242
"min_derror_decay_start" : 0.05,
4343
"min_derror_stop" : 0.05,
44-
"min_epoch_decay_start" : 15,
45-
"init_error" :100
44+
"min_epoch_decay_start" : 15
4645
},
4746

4847
"processes":{

config/CNN/T/model_conf.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
"scale_by" : 0.5,
4242
"min_derror_decay_start" : 0.05,
4343
"min_derror_stop" : 0.05,
44-
"min_epoch_decay_start" : 15,
45-
"init_error" :100
44+
"min_epoch_decay_start" : 15
4645
},
4746

4847
"processes":{

config/DBN/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,15 @@ Model Config
2323
>> 2. E: Exponential decay.
2424
* `finetune_rate` : Configuration of learning method.Contains a json object with following params
2525

26-
> param | description | default value |learning method
27-
> :-----|:------------|:--------------:|:---------------:
28-
> `learning_rate` ||0.08 | C
29-
> `epoch_num` ||10 | C
30-
> `start_rate` ||0.08 | E
31-
> `scale_by` ||0.5 | E
32-
> `min_derror_decay_start` ||0.05 | E
33-
> `min_derror_stop` ||0.05 | E
34-
> `min_epoch_decay_start` || 15 | E
35-
> `init_error` || 100 | E
26+
> param | description | default value |learning method
27+
> :-------------------------|:------------|:--------------:|:---------------:
28+
> `learning_rate` ||0.08 | C
29+
> `epoch_num` ||10 | C
30+
> `start_rate` ||0.08 | E
31+
> `scale_by` ||0.5 | E
32+
> `min_derror_decay_start` ||0.05 | E
33+
> `min_derror_stop` ||0.05 | E
34+
> `min_epoch_decay_start` || 15 | E
3635
3736
* `finetune_momentum` : The momentum factor while finetuning
3837
* `export_path` : path (realative to `wdir`) for writting (bottleneck) features.
@@ -74,4 +73,4 @@ Each one is a json object with following fields:
7473
* `reader_type` : (Mandatory) Type of reader NP/T1/T2.
7574
* `dim_shuffle` : how to use reshape given fatten vector.Used only `keep_flatten` is `false`
7675

77-
________________________________________________________________________________________________________________
76+
_____________________________________________________________________________________________________________

config/DBN/model_conf.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
"scale_by" : 0.5,
4646
"min_derror_decay_start" : 0.05,
4747
"min_derror_stop" : 0.05,
48-
"min_epoch_decay_start" : 15,
49-
"init_error" :100
48+
"min_epoch_decay_start" : 15
5049
},
5150

5251
"comment" : "finetune_momentum :: Specify the momentum factor while finetuning",

config/DNN/model_conf.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
"scale_by" : 0.5,
3939
"min_derror_decay_start" : 0.05,
4040
"min_derror_stop" : 0.05,
41-
"min_epoch_decay_start" : 15,
42-
"init_error" :100
41+
"min_epoch_decay_start" : 15
4342
},
4443

4544
"comment" : "finetune_momentum :: Specify the momentum factor while finetuning",

config/SDA/model_conf.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
"scale_by" : 0.5,
4444
"min_derror_decay_start" : 0.05,
4545
"min_derror_stop" : 0.05,
46-
"min_epoch_decay_start" : 15,
47-
"init_error" :100
46+
"min_epoch_decay_start" : 15
4847
},
4948

5049
"comment" : "finetune_momentum :: Specify the momentum factor while finetuning",

utils/learn_rates.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ class LearningRateExpDecay(LearningRate):
4141
def __init__(self,kwargs, decay=False, zero_rate = 0.0):
4242

4343
self.start_rate = kwargs['start_rate']
44-
self.init_error = kwargs['init_error']
45-
4644
self.rate = kwargs['start_rate']
4745
self.scale_by = kwargs['scale_by']
4846
self.min_derror_decay_start = kwargs['min_derror_decay_start']
4947
self.min_derror_stop = kwargs['min_derror_stop']
50-
self.lowest_error = kwargs['init_error']
5148
self.min_epoch_decay_start = kwargs['min_epoch_decay_start']
49+
self.lowest_error = float('Inf')
5250
self.epoch = 1
5351
self.decay = decay
5452
self.zero_rate = zero_rate

utils/load_conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ def initModelDNN(data):
323323
lrate_config['min_derror_decay_start'] = 0.05
324324
lrate_config['min_derror_stop'] = 0.05
325325
lrate_config['min_epoch_decay_start'] = 15
326-
lrate_config['init_error'] = 100
327326
data['finetune_rate']=lrate_config
328327
return data
329328

0 commit comments

Comments
 (0)