/// <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]); } }
/// <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]); }