Beispiel #1
0
 internal Population GeneratePopulation()
 {
     var factory = new God(_config, Inputs, NumOutputs);
     _population = new Population(_config, this);
     for (int i = 0; i < _config.PopSize; i++) {
         _population[i] = factory.BuildGenome();
     }
     return _population;
 }
Beispiel #2
0
 internal Genome(Node[] outputs, God god)
 {
     _outputs = outputs;
     Head = outputs[0];
     _god = god;
 }