Inheritance: BasicRandomizer
        /// <inheritdoc/>
        public void Reset(int seed)
        {
            var randomizer = new ConsistentRandomizer(-1, 1,
                seed);

            /**
             * {@inheritDoc}
             */
            PerformConnectionTask(connection => { connection.Weight = randomizer.NextDouble(); });
        }
Esempio n. 2
0
 /// <summary>
 /// 
 /// </summary>
 ///
 public void Reset(int seed)
 {
     var randomize = new ConsistentRandomizer(-1, 1,
                                              seed);
     randomize.Randomize(_weightsInputToInstar);
     randomize.Randomize(_weightsInstarToOutstar);
 }
Esempio n. 3
0
 public void Reset(int seed)
 {
     ConsistentRandomizer randomizer = new ConsistentRandomizer(-1.0, 1.0, seed);
     randomizer.Randomize(this._weightsInputToInstar);
     randomizer.Randomize(this._weightsInstarToOutstar);
 }
Esempio n. 4
0
 public static FlatNetwork CreateNetwork()
 {
     BasicNetwork network = EncogUtility
             .SimpleFeedForward(2, 4, 0, 1, false);
     IRandomizer randomizer = new ConsistentRandomizer(-1, 1);
     randomizer.Randomize(network);
     return (FlatNetwork)network.Structure.Flat.Clone();
 }