public void ShouldReturnCorrectSizeWhenRandomize() { NetVector v1 = NetVector.Randomize(10, -5, 5); Assert.AreEqual(10, v1.Values.Length); }
public Neuron(int size, double weightMin, double weightMax, ActivationFunctions.Func activationFunc) { this.weightsVector = NetVector.Randomize(size + 1, weightMin, weightMax); this.activationFunc = activationFunc; }