Permalink
Browse files

Update examples/neural_network/backpropagation_example.rb

Neural network creation comment
  • Loading branch information...
1 parent 26de6d5 commit 9b1d0a1430c3136e1f92bcda00d3e98b15a4c2f4 @kritik kritik committed Oct 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 examples/neural_network/backpropagation_example.rb
@@ -16,7 +16,8 @@
times = Benchmark.measure do
srand 1
-
+
+ # creating network with 256 input-neurons, 3-neurons and 0 hidden layers
net = Ai4r::NeuralNetwork::Backpropagation.new([256, 3])
tr_input = TRIANGLE.flatten.collect { |input| input.to_f / 5.0}

0 comments on commit 9b1d0a1

Please sign in to comment.