Toy-Neural-Network-JS icon indicating copy to clipboard operation
Toy-Neural-Network-JS copied to clipboard

Refactored ActivationFunction

Open AR-234 opened this issue 7 years ago • 2 comments

Refactored the Activation function for a cleaner look and compressing the code into a more class like structure..

AR-234 avatar Feb 13 '18 15:02 AR-234

In my opinion x and y are not the best names for the functions. I used func for function and dfunc for derivated function.

Maik1999 avatar Feb 13 '18 20:02 Maik1999

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

AR-234 avatar Feb 14 '18 14:02 AR-234