CodingTrain / Toy-Neural-Network-JS

Neural Network JavaScript library for Coding Train tutorials
MIT License
425 stars 242 forks source link

Give frame work to add additional activation functions #45

Closed schrummy14 closed 6 years ago

schrummy14 commented 6 years ago

This, should, allow the use of additional activation functions

shiffman commented 6 years ago

This is great! Do you think it makes sense to refactor sigmoid() and any future functions to be static() methods of NeuralNetwork or namespaced in some way?

schrummy14 commented 6 years ago

For a "toy" I don't see the harm in people being able to call the function from outside the nn but that is something that definitely could be done to make sure the functions work the way their suppose to.

shiffman commented 6 years ago

Great, merging in for now!