神经进化平台模块更新与优化
在神经进化平台的开发中,模块的更新与优化至关重要。下面将详细介绍相关模块的更新内容和实现细节。
竞争选择算法
竞争选择算法在神经进化中起着关键作用。 choose_CompetitionWinner 函数用于从 AllotmentsP 中随机选择一个代理,选择代理的概率与其 MutantAllotment 值成正比。
{WinnerFitness,WinnerTotN,WinnerAgent_Id}=choose_CompetitionWinner(AlotmentsP,
Normalizer,Choice,0),
{WinnerFitness,WinnerTotN,WinnerAgent_Id}.
choose_CompetitionWinner([{MutantAllotment,Fitness,TotN,Agent_Id}|AllotmentsP],
Normalizer,Choice,Range_From)->
Range_To = Range_From+MutantAllotment/Normalizer,
case (Choice >= Range_From) and (Choice =< Range_To) of
true ->
{Fitness,TotN,Agent_Id};
false ->
choose_CompetitionWinner(AllotmentsP,Normalizer,Choice,R
超级会员免费看
订阅专栏 解锁全文
3万+

被折叠的 条评论
为什么被折叠?



