Created
August 20, 2019 00:04
-
-
Save luiscarbonell/8334a9d1a2a751b915201581fb1b3d52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const activate = (input) => { | |
inputs.forEach((neuron, i) => neuron.activate(input[i])); | |
hiddens.forEach(neuron => neuron.activate()); | |
return outputs.map(neuron => neuron.activate()); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment