Skip to content

Instantly share code, notes, and snippets.

@luiscarbonell
Created August 12, 2019 14:53
Show Gist options
  • Select an option

  • Save luiscarbonell/8266545e3bc8748f94279e5e3c5cb979 to your computer and use it in GitHub Desktop.

Select an option

Save luiscarbonell/8266545e3bc8748f94279e5e3c5cb979 to your computer and use it in GitHub Desktop.
const uid = require("cuid");
const Neuron = require("./neuron");
function Group() {
this.id = uid();
this.neurons = size == undefined ? [] : Array.from({ length: size }, function() {
return new Neuron(bias);
});
// Code here...
}
module.exports = Group;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment