Skip to content

Commit 14651dd

Browse files
committed
Alpha Release
1 parent f911391 commit 14651dd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

io_modules/model_io.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def _cnn2file(conv_layers,mlp_layers,filename='nnet.out',
9494
if i == 0:
9595
mlp_dict[dict_a] = array_2_string(input_factor * mlp_layers[i].params[0].get_value())
9696
else:
97-
print mlp_layers[i].params[0]
9897
mlp_dict[dict_a] = array_2_string(factor * mlp_layers[i].params[0].get_value())
9998
dict_a = str(i) + ' b'
10099
mlp_dict[dict_a] = array_2_string(mlp_layers[i].params[1].get_value())

run/run_CNN.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def runCNN(arg):
9292

9393
pred,err=testing(cnn,test_sets, test_xy, test_x, test_y,batch_size)
9494

95+
96+
_cnn2file(cnn.layers[0:cnn.conv_layer_num],cnn.layers[cnn.conv_layer_num:], filename=model_config['output_file']);
97+
9598
##########################
9699
## Export Features ##
97100
##########################

0 commit comments

Comments
 (0)