Toy-Neural-Network-JS
Toy-Neural-Network-JS copied to clipboard
Refactored ActivationFunction
Refactored the Activation function for a cleaner look and compressing the code into a more class like structure..
In my opinion x and y are not the best names for the functions. I used func for function and dfunc for derivated function.
well that wasn't really the point of the refactoring, i've used x and y only because its shorter and the name only shows what you need to insert..
The point for that pull request was to put the functions into the class so its more namespace-like and not just a random function somewhere in the global namespace