Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active October 23, 2017 23:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save matthieu-D/87d77ba8feb64adc5aa4f4fa98187d89 to your computer and use it in GitHub Desktop.
trainXOR() {
this.net = new brain.NeuralNetwork();
const data = [
{ input: [0,0], output:[0]},
{ input: [0,1], output:[1]},
{ input: [1,0], output:[1]},
{ input: [1,1], output:[0]}
];
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment