Esempio n. 1
0
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
}
Esempio n. 2
0
func (scape FakeScapeTwoPlayer) Fitness(cortex *ng.Cortex) float64 {
	cortexFitness := cortex.Fitness(scape.examples)
	return cortexFitness
}
Esempio n. 3
0
func (scape TrainingSampleScape) Fitness(cortex *ng.Cortex) float64 {
	return cortex.Fitness(scape.examples)
}