AForge.Neuro.Learning.DeltaRuleLearning.DeltaRuleLearning C# (CSharp) Method

DeltaRuleLearning() public method

Initializes a new instance of the DeltaRuleLearning class.
Invalid nuaral network. It should have one layer only.
public DeltaRuleLearning ( ActivationNetwork network ) : System
network ActivationNetwork Network to teach.
return System
        public DeltaRuleLearning( ActivationNetwork network )
        {
            // check layers count
            if ( network.Layers.Length != 1 )
            {
                throw new ArgumentException( "Invalid nuaral network. It should have one layer only." );
            }

            this.network = network;
        }