public void TestTruthTable() { var neat = new Brain.Neat.Neat(); var ne = new NeuroEvolution(neat); var bodies = new List <IBody>(); // population size is 10 for (int i = 0; i < 10; i++) { bodies.Add(new Body()); } var champ = ne.Begin(bodies); for (var i = 0; i < 100; i++) { Console.WriteLine("Champ fitness: " + champ.CalculateRawFitness()); champ = ne.Epoch(); } }
public Species(Neat neat, Organism representative) { _neat = neat; _representative = representative; _population = new List <Organism>(); }
public NeuroEvolution(Neat neat) { _neat = neat; _speciesManager = new SpeciesManager(neat); }
public SpeciesManager(Neat neat) { _neat = neat; _innovationCacher = new InnovationCacher(); _species = new List <Species>(); }