コード例 #1
0
        // получение вектора из производных функции type
        public Vector Derivative(ActivationType type)
        {
            Vector derivative = new Vector(length);

            Parallel.For(0, length, i => {
                derivative.values[i] = ActivationFunction.Derivative(type, values[i]);
            });

            return(derivative);
        }