Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ant_nn_ga.pyの変数の名前 #9

Closed
LanaSina opened this issue May 18, 2018 · 1 comment
Closed

ant_nn_ga.pyの変数の名前 #9

LanaSina opened this issue May 18, 2018 · 1 comment

Comments

@LanaSina
Copy link
Contributor

LanaSina commented May 18, 2018

chapte r6 ant_nn_ga.py の変数の名前でちょっと混乱しています

for g in population: この g は多分 generationだと思いますが、本当にgenerationという意味ですか?1匹のありではなくて?

# best population alive next gen
    offsprings[0] = best_pop 

ここでさらに混乱、本を読んでいないせいかもしれません。
offspringは1匹のありだと思っていましたが、best_pop はpopulationで、population = 1匹 という風に読んでします…

@maru-n
Copy link
Collaborator

maru-n commented May 18, 2018

↑best_pop (population) は変なので、best_individualに変更しました

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants