cazala / synaptic

architecture-free neural network library for node.js and the browser

Home Page:http://caza.la/synaptic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Poor scalability

ignasg opened this issue · comments

commented

Not sure if this is by design, but it tends to die with larger layers:

    var Layer = synaptic.Layer,
      Network = synaptic.Network;


    var totalSize = 1024;

    var inputLayer = new Layer(totalSize);
    var hiddenLayer1 = new Layer(totalSize);
    inputLayer.project(hiddenLayer1, Layer.connectionType.ALL_TO_ALL);

^^ hangs here. Sluggishly works with smaller number of neurons.

Thats Node V8 passing out. Try Node Chakra:
https://nodejs.org/download/chakracore-nightly/

However for networks of this size I would recommend Tensorflow/Keras with one or more Nvidia GPUs,