public Link(Input input, Output output) { this.Input = input; this.Output = output; this.Weight = new Random().NextDouble(); Console.WriteLine("Weight: " + Weight); }
public Network(int numInputs, int numOutputs) { LearningRate = 0.1; Inputs = new Input[numInputs]; for (int i = 0; i < numInputs; i++) { Inputs[i] = new Input(); } Outputs = new Output[numOutputs]; for (int i = 0; i < numOutputs; i++) { Outputs[i] = new Output(); } }