Currently there is an activation namespace. Its members are activation function definitions. These are objects with func, prime, rangeMin, and rangeMax properties.
These objects should be created by a class or factory so they can be validated, extended, and created consistently. For better cohesion, this should be a static Neuron class or factory. Same for the namespace, it should likely be a Neuron namespace.
We should likely end up with something along the lines of:
// current namespace with its activations
Neuron.ACTIVATION.tanh
// create new activation
Neuron.ACTIVATION.create({
name: 'newActivation',
func: x => x,
prime: x => x,
rangeMin: 0,
rangeMax: 1,
})
// => Neuron.ACTIVATION.newActivation
EDIT
Also, finish the docs in the Neuron class while at this. There are missing and incomplete doc strings here.
Currently there is an activation namespace. Its members are activation function definitions. These are objects with
func,prime,rangeMin, andrangeMaxproperties.These objects should be created by a class or factory so they can be validated, extended, and created consistently. For better cohesion, this should be a static Neuron class or factory. Same for the namespace, it should likely be a Neuron namespace.
We should likely end up with something along the lines of:
EDIT
Also, finish the docs in the Neuron class while at this. There are missing and incomplete doc strings here.