AForge.Neuro.Learning.ResilientBackpropagationLearning.ResetGradient C# (CSharp) Méthode

ResetGradient() private méthode

Resets current weight and threshold derivatives.
private ResetGradient ( ) : void
Résultat void
        private void ResetGradient( )
        {
            for ( int i = 0; i < weightsDerivatives.Length; i++ )
            {
                for ( int j = 0; j < weightsDerivatives[i].Length; j++ )
                {
                    Array.Clear( weightsDerivatives[i][j], 0, weightsDerivatives[i][j].Length );
                }
            }

            for ( int i = 0; i < thresholdsDerivatives.Length; i++ )
            {
                Array.Clear( thresholdsDerivatives[i], 0, thresholdsDerivatives[i].Length );
            }
        }