public NeuralNetworkGene GetGenes() { return(new NeuralNetworkGene { InputGene = InputLayer.GetGenes(), HiddenGenes = HiddenLayers.Select(l => l.GetGenes()).ToList(), OutputGene = OutputLayer.GetGenes() }); }
public virtual void Process() { InputLayer.Process(); foreach (ILayer hiddenLayer in HiddenLayers) { hiddenLayer.Process(); } OutputLayer.Process(); }
public Network(InputLayer inputLayer, IEnumerable <Layer> processingLayers) { Layers = ((ILayer)inputLayer).AsEnumerableOfOne() .Concat(processingLayers).ToArray(); }