Last active
October 23, 2017 23:59
-
-
Save matthieu-D/b33f5b6b90819d22a57be8bd14f1b6b5 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
this.net.train(data, { | |
errorThresh: 1, // error threshold to reach | |
iterations: 2, // maximum training iterations | |
log: true, // console.log() progress periodically | |
logPeriod: 1, // number of iterations between logging | |
learningRate: 0.1 // learning rate | |
}); | |
console.log(this.net.run([0,0])); | |
console.log(this.net.run([0,1])); | |
console.log(this.net.run([1,0])); | |
console.log(this.net.run([1,1])); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment