Esempio n. 1
0
 /// <summary>
 /// Instanciate a new layer of non-input neurons. You'll hardly need to call this as the preferred way to create layers is using the network classes.
 /// </summary>
 /// <param name="neurons">A list of neurons to put into this layer.</param>
 /// <param name="source">The layer that will feed/point to this layer.</param>
 /// <param name="config">The configuration instance.</param>
 public Layer(ConfigNode node, IEnumerable <Neuron> neurons, Layer source)
 {
     node.AttatchToHost(this);
     _behavior    = LayerBehaviorFlags.Feeded;
     _sourceLayer = source;
     AddRange(neurons);
     source.FeedLayer(this);
 }
Esempio n. 2
0
 /// <summary>
 /// Instanciate a new layer of non-input neurons. You'll hardly need to call this as the preferred way to create layers is using the network classes.
 /// </summary>
 /// <param name="neuronCount">The count of neurons this layer shall create.</param>
 /// <param name="source">The layer that will feed/point to this layer.</param>
 /// <param name="config">The configuration instance.</param>
 public Layer(ConfigNode node, int neuronCount, Layer source)
 {
     node.AttatchToHost(this);
     _behavior    = LayerBehaviorFlags.Feeded;
     _sourceLayer = source;
     AddRange(neuronCount);
     source.FeedLayer(this);
 }