func (scape XnorScapeTwoPlayer) FitnessAgainst(cortex *ng.Cortex, opponent *ng.Cortex) float64 { cortexFitness := cortex.Fitness(scape.examples) opponentFitness := opponent.Fitness(scape.examples) logg.LogTo("DEBUG", "Cortex fitness: %v vs. Opponent: %v", cortexFitness, opponentFitness) // return cortexFitness - opponentFitness return cortexFitness }
func (scape FakeScapeTwoPlayer) Fitness(cortex *ng.Cortex) float64 { cortexFitness := cortex.Fitness(scape.examples) return cortexFitness }
func (scape TrainingSampleScape) Fitness(cortex *ng.Cortex) float64 { return cortex.Fitness(scape.examples) }