public void AddLearningPair(List <double> inputs, List <double> expectedOutputs) { if (inputs.Count != layers.getInputLayer().getNeurons().Count) { throw new ArgumentException("Learning pair inputs count must match neurons count in input layer."); } if (expectedOutputs.Count != layers.getOutputLayer().getNeurons().Count) { throw new ArgumentException("Learning pair outputs count must match neurons count in output layer."); } networkData.Inputs.Add(inputs); networkData.ExpectedOutputs.Add(expectedOutputs); }
public int GetInputLayerSize() { return(layers.getInputLayer().getNeurons().Count); }