Open t-mullen opened 8 years ago
Yes there is! Well... indirectly though. The good ol' toJSON() allows this.
var network = new synaptic.Architect.Perceptron(2,2,1);
var networkJSON = network.toJSON();
networkJSON.connections.splice(index,1); // e.g. this is how to remove a certain connection
networkJSON.neurons.splice(index,1); // e.g. this is how to remove a certain neuron
network = synaptic.Network.fromJSON(networkJSON); // convert it back
You can even manually remove them by JSON.stringify() and then just deleting one of the elements in the neurons
or connections
array.
@wagenaartje dropout is required during training phase, I'm afraid this approach will, kinda, make everything veeery slow
Does Synaptic support removal/disconnection of neurons after training?
If not, is there any way to implement dropout?