-
Notifications
You must be signed in to change notification settings - Fork 87
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
Selection minor refactoring #918
Conversation
MorrisNein
commented
Sep 29, 2022
•
edited
Loading
edited
- Made all selection types significantly faster.
- Made all selection types maintain default behavior: remove duplicate individuals and return a multiple instances of a single individual if only one individual was passed as a population.
- Made inheritance use one of competitive selection algorithms at a time, instead of their mixture.
А почему он faster? |
Codecov Report
@@ Coverage Diff @@
## master #918 +/- ##
==========================================
- Coverage 88.32% 88.29% -0.03%
==========================================
Files 203 203
Lines 13380 13374 -6
==========================================
- Hits 11818 11809 -9
- Misses 1562 1565 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
faeaad1
to
501a98a
Compare
Ускорил в 10 раз Исправил удалением выбранных индивидов из копии первоначальной выборки (которая теперь уникальный список), а также увеличил численность поколений в тесте |
2c7d835
to
e33eb3b
Compare
- replace `while` -> `for` - move some conditions out of cycles
213f1a3
to
0eb198b
Compare
0eb198b
to
4ced3a3
Compare
4ced3a3
to
b89185a
Compare