RandomizeNeuron() public method

public RandomizeNeuron ( double low, double high, int targetLayer, int neuron ) : void
low double The low-end of the range.
high double The high-end of the range.
targetLayer int The target layer.
neuron int The target neuron.
return void
        public void TestRandomizeNeuronOutput()
        {
            double[]     d       = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
            BasicNetwork network = EncogUtility.SimpleFeedForward(2, 3, 0, 1, false);

            NetworkCODEC.ArrayToNetwork(d, network);
            PruneSelective prune = new PruneSelective(network);

            prune.RandomizeNeuron(100, 100, 2, 0);
            Assert.AreEqual("100,100,100,100,0,0,0,0,0,0,0,0,0", network.DumpWeights());
        }
 public void TestRandomizeNeuronOutput()
 {
     double[] d = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
     BasicNetwork network = EncogUtility.SimpleFeedForward(2, 3, 0, 1, false);
     NetworkCODEC.ArrayToNetwork(d, network);
     PruneSelective prune = new PruneSelective(network);
     prune.RandomizeNeuron(100, 100, 2, 0);
     Assert.AreEqual("100,100,100,100,0,0,0,0,0,0,0,0,0", network.DumpWeights());
 }