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

crossover_and_mutation.py里面choose_one_parent函数写的有问题 #5

Closed
skyliuhc opened this issue Jul 25, 2020 · 1 comment
Closed

Comments

@skyliuhc
Copy link

    if self.individuals[idx1].acc > self.individuals[idx1].acc:
        return idx1
    else:
        return idx2

应该是if self.individuals[idx1].acc > self.individuals[idx2].acc

@yn-sun
Copy link
Owner

yn-sun commented Jul 27, 2020

    if self.individuals[idx1].acc > self.individuals[idx1].acc:
        return idx1
    else:
        return idx2

应该是if self.individuals[idx1].acc > self.individuals[idx2].acc

Thank you so much for pointing out the issue. We have revised and updated it accordingly. Thanks again!

@yn-sun yn-sun closed this as completed Jul 27, 2020
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