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

Activation functions as static context instead of constant

Open xxMrPHDxx opened this issue 7 years ago • 1 comments

We are currently using constant to declare those activation functions. I think it will be much better if we use static context instead to declare them.

Here I included the code in my gist as a reference.

xxMrPHDxx avatar Feb 15 '18 17:02 xxMrPHDxx

I agree with the idea that the activation functions should be moved into their own file. There are a ton of activation functions that have yet to be implemented because of the current limitations of the ActivationFunction class. The class itself will probably go through several changes in the future, especially if we are implementing activation functions with alpha and lambda values. Not to mention if we implement activations that go past a single-fold x, like the softmax and maxout activations.

Adil-Iqbal avatar Feb 15 '18 19:02 Adil-Iqbal