Beispiel #1
0
 public void setWeights(Genome genome) throws DuplicateNeuronID_Exception {
   updateAllNeuronsMap();
   for (Gene gene : genome.getGenes()) {
     Neuron neuron = allNeurons.get(gene.getNeuronID());
     neuron.getInputConnections().get(gene.getInputNumber()).setWeight(gene.getWeight());
   }
 }