Open bitplanets opened 9 years ago
this
var sizes = _([inputSize, hiddenSizes, outputSize]).flatten();
returns a lodash wrapper instance instead of an array. Please do this instead:
var sizes = _.flatten([inputSize, hiddenSizes, outputSize]);
If not your lib is not usable with lodash
https://github.com/harthur/brain/blob/6b58dc24d151f7d57b9c370a7ace4a0f883907d6/lib/neuralnetwork.js#L99
also at line 527.
this
returns a lodash wrapper instance instead of an array. Please do this instead:
If not your lib is not usable with lodash
https://github.com/harthur/brain/blob/6b58dc24d151f7d57b9c370a7ace4a0f883907d6/lib/neuralnetwork.js#L99
also at line 527.