cazala / synaptic

architecture-free neural network library for node.js and the browser
http://caza.la/synaptic
Other
6.91k stars 666 forks source link

What are the uids used for? #204

Closed wagenaartje closed 7 years ago

wagenaartje commented 7 years ago

I've been going through the code and I have seen this:

this.ID = Neuron.uid();

The function is defined as follows:

  var neurons = 0;
  var connections = 0;
  Neuron.uid = function() {
    return neurons++;
  }
  Neuron.connection.uid = function() {
    return connections++;
  }

So I went through the code and... the uid isn't used anywhere? Why was it implemented?