// Push the inputs into the neural network. Returning the final outputs
Push the inputs into the neural network. Returning the final outputs
// Push the inputs into the neural network . Returning the final outputs
func (n *Network) Evaluate(inputs []float64) []float64 {
	if len(inputs) != len(n.Inputs) {
		panic(fmt.Sprintf("Network.PushInputs failed input lengths do not match %d %d", len(inputs), len(n.Inputs)))
	}
	copy(n.Inputs, inputs)
	outputs := n.Inputs
	for i := 0; i < len(n.Layers); i++ {
		outputs = propagateInputs(outputs, n.Layers[i])
	}
	return outputs
}
func ( n * Network ) Evaluate ( inputs [ ] float64 ) [ ] float64 { if len ( inputs ) != len ( n . Inputs ) { panic ( fmt . Sprintf ( " " , len ( inputs ) , len ( n . Inputs ) ) ) } copy ( n . Inputs , inputs ) outputs := n . Inputs for i := 0 ; i < len ( n . Layers ) ; i ++ { outputs = propagateInputs ( outputs , n . Layers [ i ] ) } return outputs }
Push the inputs into the neural network.
Push the inputs into the neural network .