Skip to content

Instantly share code, notes, and snippets.

@KaiWedekind
Created September 4, 2018 19:02
Show Gist options
  • Save KaiWedekind/1381266e457d29e849cc362632b72761 to your computer and use it in GitHub Desktop.
Save KaiWedekind/1381266e457d29e849cc362632b72761 to your computer and use it in GitHub Desktop.
network.train(data, {
iterations: 20000, // the maximum times to iterate the training data --> number greater than 0
errorThresh: 0.005, // the acceptable error percentage from training data --> number between 0 and 1
log: false, // true to use console.log, when a function is supplied it is used --> Either true or a function
logPeriod: 10, // iterations between logging out --> number greater than 0
learningRate: 0.3, // scales with delta to effect training rate --> number between 0 and 1
momentum: 0.1, // scales with next layer's change value --> number between 0 and 1
callback: null, // a periodic call back that can be triggered while training --> null or function
callbackPeriod: 10, // the number of iterations through the training data between callback calls --> number greater than 0
timeout: Infinity // the max number of milliseconds to train for --> number greater than 0
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment