예제 #1
0
 public NetLayer(int size, int inputsCount, double randMin, double randMax, ActivationFunctions.Func activationFunc)
 {
     this.neurons = new Neuron[size];
     for (int i = 0; i < size; ++i)
     {
         neurons[i] = new Neuron(inputsCount, randMin, randMax, activationFunc);
     }
 }
예제 #2
0
 public Neuron(int size, double weightMin, double weightMax, ActivationFunctions.Func activationFunc)
 {
     this.weightsVector  = NetVector.Randomize(size + 1, weightMin, weightMax);
     this.activationFunc = activationFunc;
 }
예제 #3
0
 public Neuron(NetVector weightsVector, ActivationFunctions.Func activationFunc)
 {
     this.weightsVector  = weightsVector;
     this.activationFunc = activationFunc;
 }