Example #1
0
    public void ShouldReturnCorrectSizeWhenRandomize()
    {
        NetVector v1 = NetVector.Randomize(10, -5, 5);

        Assert.AreEqual(10, v1.Values.Length);
    }
Example #2
0
 public Neuron(int size, double weightMin, double weightMax, ActivationFunctions.Func activationFunc)
 {
     this.weightsVector  = NetVector.Randomize(size + 1, weightMin, weightMax);
     this.activationFunc = activationFunc;
 }