Class implementing an Adaline node in the Adaline network.
상속: FeedForwardNode
예제 #1
0
 /// <summary>
 ///     Overridden.Constructs network topology.
 /// </summary>
 /// <remarks>Creates nodes, links and connects nodes using created links.</remarks>
 protected override void CreateNetwork()
 {
     nodes = new NeuroNode[NodesCount];
     links = new NeuroLink[LinksCount];
     for (var i = 0; i < InputNodesCount; i++)
     {
         nodes[i] = new InputNode();
     }
     nodes[NodesCount - 2] = new BiasNode(1);
     nodes[NodesCount - 1] = new AdalineNode(LearningRate);
     for (var i = 0; i < LinksCount; i++)
     {
         links[i] = new AdalineLink();
     }
     for (var i = 0; i < LinksCount; i++)
     {
         nodes[i].LinkTo(nodes[NodesCount - 1], links[i]);
     }
 }
예제 #2
0
 /// <summary>
 ///     Overridden.Constructs network topology.
 /// </summary>
 /// <remarks>Creates nodes, links and connects nodes using created links.</remarks>
 protected override void CreateNetwork()
 {
     nodes = new NeuroNode[NodesCount];
     links = new NeuroLink[LinksCount];
     for (var i = 0; i < InputNodesCount; i++)
         nodes[i] = new InputNode();
     nodes[NodesCount - 2] = new BiasNode(1);
     nodes[NodesCount - 1] = new AdalineNode(LearningRate);
     for (var i = 0; i < LinksCount; i++)
         links[i] = new AdalineLink();
     for (var i = 0; i < LinksCount; i++)
         nodes[i].LinkTo(nodes[NodesCount - 1], links[i]);
 }