lib/perceptron.js
Function perceptron
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var perceptron = function(options) {
options = options || {};
options.bias = (typeof(options.bias) === 'number') ? options.bias : 1;
options.type = options.type || 'hidden';
options.id = options.id || '';