Skip to content

Commit ea5af2a

Browse files
committed
Merge branch 'master' of bitbucket.org:sudhargk/python-dnn
Conflicts: run/run_CNN.py utils/load_conf.py
2 parents c931bf2 + a9be9b7 commit ea5af2a

File tree

15 files changed

+97
-94
lines changed

15 files changed

+97
-94
lines changed
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@
88
"comment" : "valid_data (Mandatory) specify the path of the validation data relative to the working directory",
99
"data_spec" : "data_spec.json",
1010

11-
"comment" : "nnet_spec :: (Mandatory) specify the path of network configuration specification relative to working directory",
12-
"nnet_spec" : "conv_spec.json",
13-
14-
"comment" : "hidden_output_file :: (Mandatory) specify the path of convolution network output file relative to working directory",
15-
"hidden_output_file" : "hidden_out.model",
11+
"comment" : "hidden_nnet_spec :: (Mandatory) specify the path of hidden network configuration specification relative to working directory",
12+
"nnet_spec" : "nnet_spec.json",
1613

17-
"comment" : "conv_output_file :: (Mandatory) specify the path of convolution network output file relative to working directory",
18-
"conv_output_file" : "conv_out.model",
14+
"comment" : "hidden_output_file :: (Mandatory) specify the path of convolution network output file relative to working directory",
15+
"output_file" : "hidden_out.model",
1916

2017
"comment" : "conv_output_file :: (Mandatory) specify the path of convolution network output file relative to working directory",
2118
"output_file" : "conv_out.model",
@@ -47,13 +44,12 @@
4744
"min_epoch_decay_start" : 15,
4845
"init_error" :100
4946
},
50-
47+
5148
"processes":{
5249
"pretraining":false,
5350
"finetuning":true,
5451
"testing":true,
5552
"export_data":false
5653
},
57-
5854
"export_path" : "data/export"
5955
}

config/CNN/NP/nnet_spec.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"comment" : "layers :: convolution layer configuration",
3+
"cnn": {
4+
"layers": [
5+
{
6+
"convmat_dim" : [5,5],
7+
"num_filters" : 100,
8+
"poolsize" : [2,2],
9+
"flatten" : false,
10+
"update" : true
11+
},
12+
{
13+
"convmat_dim" : [4,4],
14+
"num_filters" : 200,
15+
"poolsize" : [2,2],
16+
"flatten" : true,
17+
"update" : true
18+
}
19+
],
20+
21+
"comment" : "activation :: sigmoid or tanh",
22+
"activation" : "tanh",
23+
24+
"comment" : "use_fast :: To use pylearn2 library for faster computation or not",
25+
"use_fast" : false
26+
},
27+
28+
"comment" : "layers :: hidden layer configuration",
29+
"mlp" : {
30+
31+
"layers": [500,200],
32+
33+
"comment" : "activation :: sigmoid or tanh",
34+
"activation" : "tanh"
35+
}
36+
}
37+

config/CNN/README

Whitespace-only changes.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
"comment" : "valid_data (Mandatory) specify the path of the validation data relative to the working directory",
99
"data_spec" : "data_spec.json",
1010

11-
"comment" : "conv_nnet_spec :: (Mandatory) specify the path of convolution network configuration specification relative to working directory",
12-
"nnet_spec" : "conv_spec.json",
11+
"comment" : "nnet_spec :: (Mandatory) specify the path of convolution network configuration specification relative to working directory",
12+
"nnet_spec" : "nnet_spec.json",
1313

1414
"comment" : "hidden_output_file :: (Mandatory) specify the path of convolution network output file relative to working directory",
15-
"hidden_output_file" : "hidden_out.model",
15+
"output_file" : "hidden_out.model",
1616

1717
"comment" : "conv_output_file :: (Mandatory) specify the path of convolution network output file relative to working directory",
18-
"conv_output_file" : "conv_out.model",
18+
"output_file" : "conv_out.model",
1919

2020
"comment" : "input_shape :: (Mandatory) specify the input shape of a given feature vector" ,
2121
"input_shape" : [1,10,5],
@@ -49,7 +49,7 @@
4949
"pretraining":false,
5050
"finetuning":true,
5151
"testing":true,
52-
"export_data":false,
52+
"export_data":false
5353
},
5454

5555
"export_path" : "data/export"

config/CNN/T/nnet_spec.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"comment" : "layers :: convolution layer configuration",
3+
"cnn" : {
4+
"layers": [
5+
{
6+
"convmat_dim" : [3,2],
7+
"num_filters" : 100,
8+
"poolsize" : [2,2],
9+
"flatten" : true,
10+
"update" : true
11+
}
12+
13+
],
14+
15+
"comment" : "activation :: sigmoid or tanh",
16+
"activation" : "tanh",
17+
18+
"comment" : "use_fast :: To use pylearn2 library for faster computation or not",
19+
"use_fast" : false
20+
},
21+
22+
"comment" : "layers :: hidden layer configuration",
23+
"mlp" : {
24+
"layers": [100,200],
25+
26+
"comment" : "activation :: sigmoid or tanh",
27+
"activation" : "tanh"
28+
}
29+
}

config/CNN/conv_spec.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

config/CNN/mlp_spec.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

config/CNN1/README

Whitespace-only changes.

0 commit comments

Comments
 (0)