network.rb
# Push the output layer onto the stack.
Push the output layer onto the stack.
Push the output layer onto the stack .
def pushOutputLayer(layer)
		if @output_pushed.nil?
			if layer.kind_of?(NetworkLayer)
				l = layer
			elsif layer.kind_of?(Fixnum)
				l = NetworkLayer.new(layer)
			else
				raise "No valid output layer data pushed to method"
			end
		else
			raise "An output layer was already pushed onto stack"
		end	
		@layers.push(l)
		@output_pushed = true
	end
def pushOutputLayer ( layer ) if @output_pushed . nil? if layer . kind_of? ( NetworkLayer ) l = layer elsif layer . kind_of? ( Fixnum ) l = NetworkLayer . new ( layer ) else raise "No valid output layer data pushed to method" end else raise "An output layer was already pushed onto stack" end @layers . push ( l ) @output_pushed = true end
Push the output layer onto the stack.
Push the output layer onto the stack .
layer
<not_specific>