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