Is there a good way to add / remove a neuron and its associated connections to / from a fully connected PyBrain network? Let's say I start with:
from pybrain.tools.shortcuts import buildNetwork net = buildNetwork(2,3,1)
How can I do this (2,4,1) or (2,2,1) WHILE network, supporting all old scales (and initializing any new ones to be random, how is this done during network initialization)? The reason I want to do this is because I'm trying to use an evolutionary learning strategy to determine the best architecture, and the βmutationβ step involves adding / removing nodes with some probability. (Input and output modules must always remain unchanged.)
edit: I found NeuronDecomposableNetwork, which should make it easier, but it seems to me that I need to track neurons and connections separately.
ubomb source share