コード例 #1
0
                public void brainAction()
                {
                    Matrix <float>      current_matrix = getInputValueMatrix() * m_weights[0];
                    DActivationFunction activator      = ActivationFactory.generateSigmoid(2, 2, true, false, false);

                    MatrixCalc.activate(activator, current_matrix);

                    for (int i = 1; i < m_weights.Length; i++)
                    {
                        current_matrix = current_matrix * m_weights[i];
                        MatrixCalc.activate(activator, current_matrix);
                    }

                    performOutputs(current_matrix);
                }