pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/winpython/GeneticAlgorithmPython/commit/004a06663489e9cdb14dd6c8dee716c67c04eeb1

origen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-10539fe0effdbc74.css" /> Update ga.py · winpython/GeneticAlgorithmPython@004a066 · GitHub
Skip to content

Commit 004a066

Browse files
authored
Update ga.py
1 parent a25b6a3 commit 004a066

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

ga.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,6 @@ def stochastic_universal_selection(self, fitness, num_parents):
366366
It returns:
367367
-parents: The selected parents to mate.
368368
"""
369-
# https://en.wikipedia.org/wiki/Stochastic_universal_sampling
370-
# https://books.google.com.eg/books?id=gwUwIEPqk30C&pg=PA60&lpg=PA60&dq=Roulette+Wheel+genetic+algorithm+select+more+than+once&source=bl&ots=GLr2DrPcj4&sig=ACfU3U0jVOGXhzsla8mVqhi5x1giPRL4ew&hl=en&sa=X&ved=2ahUKEwim25rMvdzoAhWa8uAKHbt0AdgQ6AEwA3oECAYQLQ#v=onepage&q=Roulette%20Wheel%20&f=false
371-
# https://www.tutorialspoint.com/genetic_algorithms/genetic_algorithms_parent_selection.htm
372-
# https://www.obitko.com/tutorials/genetic-algorithms/selection.php
373369
fitness_sum = numpy.sum(fitness)
374370
probs = fitness / fitness_sum
375371
probs_start = numpy.zeros(probs.shape, dtype=numpy.float) # An array holding the start values of the ranges of probabilities.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy