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

Allow the building of a 2 layer Network

FreezePhoenix opened this issue · comments

I'd love to be able to build a 2 layer Network, which would be exactly like any other Network made with the constructor, but it would only have 2 layers. I need this so I can clear the context of layers, and so I can export it to JSON.

You can do it now. Suppose, you want to write a perceptron with 1 input, 2 layers with 4 neurons each and 1 output, then you'd write it like this var myNetwork = new Architect.Perceptron(1, 4, 4, 1).