Well if it’s not layers but more like a chaotic web I’m not sure how you can do that neatly. You could do lots and lots of mini-layers, but to fit them together would take something handcrafted.


Or maybe organise them in layers but put some nodes/weights to zero.

Well, I’m currently doing it by hand, by making the network connections myself (via dictionaries and stuff), and then just using lambda functions with the weight tensors… but it’s not pretty.

Also, have a look at the NEAT algorithm. That can create these structures but is an evolutionary algorithm

Guess exactly what I’m using it for?