@Test public void testMutation() throws Exception { }
@Override protected void mutation(Genotype genotype) { Synapse synapse = selectSynapse(genotype); if (synapse != null) { synapse.setEnabled(false); Double weight = synapse.getWeight(); Neuron start = synapse.getStart(); Neuron end = synapse.getEnd(); Neuron neuron = createNeuron(genotype, start, end); createSynapse(start, neuron, 1d, genotype); createSynapse(neuron, end, weight, genotype); } }
AddNeuronMutation extends AbstractMutation { @Override protected void mutation(Genotype genotype) { Synapse synapse = selectSynapse(genotype); if (synapse != null) { synapse.setEnabled(false); Double weight = synapse.getWeight(); Neuron start = synapse.getStart(); Neuron end = synapse.getEnd(); Neuron neuron = createNeuron(genotype, start, end); createSynapse(start, neuron, 1d, genotype); createSynapse(neuron, end, weight, genotype); } } }
AddNeuronMutation extends AbstractMutation { @Override protected void mutation(Genotype genotype) { Synapse synapse = selectSynapse(genotype); if (synapse != null) { synapse.setEnabled(false); Double weight = synapse.getWeight(); Neuron start = synapse.getStart(); Neuron end = synapse.getEnd(); Neuron neuron = createNeuron(genotype, start, end); createSynapse(start, neuron, 1d, genotype); createSynapse(neuron, end, weight, genotype); } } AddNeuronMutation();  AddNeuronMutation(int maxHidden);  AddNeuronMutation(int rate, int maxHidden); }
AddNeuronMutation extends AbstractMutation { @Override protected void mutation(Genotype genotype) { Synapse synapse = selectSynapse(genotype); if (synapse != null) { synapse.setEnabled(false); Double weight = synapse.getWeight(); Neuron start = synapse.getStart(); Neuron end = synapse.getEnd(); Neuron neuron = createNeuron(genotype, start, end); createSynapse(start, neuron, 1d, genotype); createSynapse(neuron, end, weight, genotype); } } AddNeuronMutation();  AddNeuronMutation(int maxHidden);  AddNeuronMutation(int rate, int maxHidden); @Override void mutate(Genotype genotype); int getMaxHidden(); void setMaxHidden(int maxHidden); NeuronFactory getNeuronFactory(); void setNeuronFactory(NeuronFactory neuronFactory); SynapseFactory getSynapseFactory(); void setSynapseFactory(SynapseFactory synapseFactory); }
AddNeuronMutation extends AbstractMutation { @Override protected void mutation(Genotype genotype) { Synapse synapse = selectSynapse(genotype); if (synapse != null) { synapse.setEnabled(false); Double weight = synapse.getWeight(); Neuron start = synapse.getStart(); Neuron end = synapse.getEnd(); Neuron neuron = createNeuron(genotype, start, end); createSynapse(start, neuron, 1d, genotype); createSynapse(neuron, end, weight, genotype); } } AddNeuronMutation();  AddNeuronMutation(int maxHidden);  AddNeuronMutation(int rate, int maxHidden); @Override void mutate(Genotype genotype); int getMaxHidden(); void setMaxHidden(int maxHidden); NeuronFactory getNeuronFactory(); void setNeuronFactory(NeuronFactory neuronFactory); SynapseFactory getSynapseFactory(); void setSynapseFactory(SynapseFactory synapseFactory); static final int MAX_HIDDEN; }