Skip to content

Instantly share code, notes, and snippets.

View contactsamie's full-sized avatar

Sam 塞缪尔 contactsamie

  • “I cannot remember the books I've read any more than the meals I have eaten; even so, they have made me.”
  • Vancouver, BC
View GitHub Profile
@learncodeacademy
learncodeacademy / gist:8acf7e3a2c4c33100f04c6715c662a01
Created June 11, 2018 14:23
Training a Neural Network - Enhanced Console Output From Brain.js
Start Training!...Here's the data, we'll do 2 iterations:
[ { input: [ 0, 1 ], output: [ 1, 0 ] },
{ input: [ 1, 1 ], output: [ 1, 1 ] } ]
======== TRAINING ITERATION 1 =========
--------- Run input set 0: 0,1 ----------
-> Layer 2 has 3 nodes
START NODE: 0
-> bias for node 0: 0.13861538469791412
-> weights for node 0:
-> input value: 0, weight: -0.03485306352376938