Ejemplo n.º 1
0
        /// <summary>
        ///   Constructs a new Nguyen-Widrow Weight initialization.
        /// </summary>
        ///
        /// <param name="network">The activation network whose weights will be initialized.</param>
        ///
        public NguyenWidrow(ActivationNetwork network)
        {
            this.network = network;

            int hiddenNodes = network.Layers[0].Neurons.Length;
            int inputNodes  = network.Layers[0].InputsCount;

            randRange = new Range(-0.5f, 0.5f);
            beta      = 0.7 * Math.Pow(hiddenNodes, 1.0 / inputNodes);
        }