コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DistanceNetwork"/> class.
 /// </summary>
 ///
 /// <param name="inputsCount">Network's inputs count.</param>
 /// <param name="neuronsCount">Network's neurons count.</param>
 ///
 /// <remarks>The new network is randomized (see <see cref="Neuron.Randomize"/>
 /// method) after it is created.</remarks>
 ///
 public DistanceNetwork(int inputsCount, int neuronsCount)
     : base(inputsCount, 1)
 {
     // create layer
     layers[0] = new DistanceLayer(neuronsCount, inputsCount);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DistanceNetwork"/> class.
 /// </summary>
 /// 
 /// <param name="inputsCount">Network's inputs count.</param>
 /// <param name="neuronsCount">Network's neurons count.</param>
 /// 
 /// <remarks>The new network is randomized (see <see cref="Neuron.Randomize"/>
 /// method) after it is created.</remarks>
 /// 
 public DistanceNetwork(int inputsCount, int neuronsCount)
     : base(inputsCount, 1)
 {
     // create layer
     layers[0] = new DistanceLayer(neuronsCount, inputsCount);
 }