Exemplo n.º 1
0
 public Vector ProcessInput(IFunctionApproximator network,
                            Vector input)
 {
     hiddenLayer.FeedForward(input);
     outputLayer.FeedForward(hiddenLayer.GetLastActivationValues());
     return(outputLayer.GetLastActivationValues());
 }
        public Vector ProcessInput(IFunctionApproximator network, Vector input)
        {
            hiddenLayers[0].FeedForward(input);

            for (int i = 1; i < hiddenLayers.Length; ++i)
            {
                hiddenLayers[i].FeedForward(hiddenLayers[i - 1].GetLastActivationValues());
            }

            outputLayer.FeedForward(hiddenLayers[hiddenLayers.Length - 1].GetLastActivationValues());

            return(outputLayer.GetLastActivationValues());
        }