Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let train = (times, callback) => {
async.timesSeries(times, (n, callback) => {
async.eachSeries(data, (d, callback) => {
async.series([
(callback) => activate(d.inputs, callback),
(callback) => propagate(d.outputs, callback),
(callback) => {
console.log("Trained");
callback()
},
(callback) => {
console.log(h[0].connections.incoming[0].weight + " " + h[0].connections.incoming[1].weight + " "
+ h[1].connections.incoming[0].weight + " " + h[1].connections.incoming[1].weight)
// console.log(_.last(o[0].outputs).s + " " + _.last(o[0].outputs).e + " " + _.last(o[0].outputs).d)
// console.log(_.last(o[1].outputs).s + " " + _.last(o[1].outputs).e + " " + _.last(o[1].outputs).d)
console.log()
callback()
},
'neo-async_v0': function(callback) {
neo_async_v0.timesSeries(count, iterator, callback);
},
'neo-async_v1': function(callback) {