Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

return back get_layer_array()

  • Loading branch information...
commit 6dbfa8fe17c964bc28e4a14328ad46b5f907eff6 1 parent bbf60e0
@rlidwka authored
Showing with 4 additions and 3 deletions.
  1. +3 −3 src/fann.cc
  2. +1 −0  tests/neu_count.js
View
6 src/fann.cc
@@ -38,9 +38,9 @@ void NNet::PrototypeInit(Local<FunctionTemplate> t)
NODE_SET_PROTOTYPE_METHOD(t, "get_network_type", GetNetworkType);
NODE_SET_PROTOTYPE_METHOD(t, "get_connection_rate", GetConnectionRate);
-// use net->layers instead !
-// NODE_SET_PROTOTYPE_METHOD(t, "get_num_layers", GetNumLayers);
-// NODE_SET_PROTOTYPE_METHOD(t, "get_layer_array", GetLayerArray);
+ // use net->layers instead ?
+ NODE_SET_PROTOTYPE_METHOD(t, "get_num_layers", GetNumLayers);
+ NODE_SET_PROTOTYPE_METHOD(t, "get_layer_array", GetLayerArray);
NODE_SET_PROTOTYPE_METHOD(t, "get_bias_array", GetBiasArray);
NODE_SET_PROTOTYPE_METHOD(t, "get_weights", GetWeights);
View
1  tests/neu_count.js
@@ -17,5 +17,6 @@ assert.equal(net.get_network_type(), 'shortcut');
// arrays
assert.deepEqual(net.layers, [1,2,3,4]);
+assert.deepEqual(net.get_layer_array(), [1,2,3,4]);
assert.deepEqual(net.get_bias_array(), [1,0,0,0]);
Please sign in to comment.
Something went wrong with that request. Please try again.