Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save luiscarbonell/8334a9d1a2a751b915201581fb1b3d52 to your computer and use it in GitHub Desktop.
Save luiscarbonell/8334a9d1a2a751b915201581fb1b3d52 to your computer and use it in GitHub Desktop.
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