示例#1
0
 public Layer(int nodeCount, IWeightInitilizer weightInitilizer, IActivationFunction activationFunction)
 {
     Initialize(nodeCount, (index) =>
     {
         _nodes[index] = new Node(weightInitilizer.GetWeights(), activationFunction);
     });
 }
示例#2
0
 public Layer(int nodeCount, IWeightInitilizer weightInitilizer)
 {
     Initialize(nodeCount, (index) =>
     {
         _nodes[index] = new Node(weightInitilizer.GetWeights());
     });
 }