Private Function Activation(Value As Double) 'To crunch a number between 0 and 1 Activation = (1 / (1 + Exp(Value * -1))) End Function