Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save luiscarbonell/e82e1491f5bd303522a5e8f907586d77 to your computer and use it in GitHub Desktop.
Save luiscarbonell/e82e1491f5bd303522a5e8f907586d77 to your computer and use it in GitHub Desktop.
const propagate = (target) => {
outputs.forEach((neuron, t) => neuron.propagate(target[t]));
hiddens.forEach(neuron => neuron.propagate());
return inputs.forEach(neuron => neuron.propagate());
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment