示例#1
0
文件: Link.cs 项目: Berdir/danwi
 public Link(Input input, Output output)
 {
     this.Input = input;
     this.Output = output;
     this.Weight = new Random().NextDouble();
     Console.WriteLine("Weight: " + Weight);
 }
示例#2
0
文件: Network.cs 项目: Berdir/danwi
        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();
            }
        }