本文整理匯總了Golang中github.com/maxxk/neurgo.Cortex.Fitness方法的典型用法代碼示例。如果您正苦於以下問題:Golang Cortex.Fitness方法的具體用法?Golang Cortex.Fitness怎麽用?Golang Cortex.Fitness使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/maxxk/neurgo.Cortex
的用法示例。
在下文中一共展示了Cortex.Fitness方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: FitnessAgainst
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
}
示例2: Fitness
func (scape FakeScapeTwoPlayer) Fitness(cortex *ng.Cortex) float64 {
cortexFitness := cortex.Fitness(scape.examples)
return cortexFitness
}
示例3: Fitness
func (scape TrainingSampleScape) Fitness(cortex *ng.Cortex) float64 {
return cortex.Fitness(scape.examples)
}