network.rb
# Render relevant data about the network.
Render relevant data about the network.
Render relevant data about the network .
def printNetwork
		print "Network Name: %s\n" % @id
		print "----\n"
		count = 0
		@layers.each do |l|
			count = count + 1
			print "Layer: %i\n" % count
			print "Layer Id: %s\n" % l.id
			ncount = 0
			l.getNeurons.each do |n|
				ncount = ncount + 1
				print " - Neuron Id: %s\n" % n.id
				print " - Neuron: %i\n" % ncount
				print " -- Weight: %f\n" % n.weight
				print " -- Threshold: %f\n" % n.threshold
			end
		end
	end
def printNetwork print "Network Name: %s\n" % @id print "----\n" count = 0 @layers . each do | l | count = count + 1 print "Layer: %i\n" % count print "Layer Id: %s\n" % l . id ncount = 0 l . getNeurons . each do | n | ncount = ncount + 1 print " - Neuron Id: %s\n" % n . id print " - Neuron: %i\n" % ncount print " -- Weight: %f\n" % n . weight print " -- Threshold: %f\n" % n . threshold end end end
Render relevant data about the network.
Render relevant data about the network .