Esempio n. 1
0
        public override void UpdateSpeeds(double learningRate, double momentumCoefficient, double weightDecayCoefficient)
        {
            // Should include backpropagation to input in all member layers

            convolutionalLayer2.UpdateSpeeds(learningRate, momentumCoefficient, weightDecayCoefficient);
            convolutionalLayer2.BackPropagate();

            if (nonlinearityType == "ReLU")
            {
                nonlinearityReLU.BackPropagate();
            }
            else if (nonlinearityType == "ELU")
            {
                nonlinearityELU.BackPropagate();
            }

            convolutionalLayer1.UpdateSpeeds(learningRate, momentumCoefficient, weightDecayCoefficient);
            convolutionalLayer1.BackPropagate();
        }