mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-20 00:02:04 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
20184aa433
commit
064704be46
|
@ -130,7 +130,7 @@ class GeneticAlgorithm:
|
|||
>>> np.array_equal(selected_parents[0], np.array([1.0, 2.0]))
|
||||
True # Parent 1 should be [1.0, 2.0]
|
||||
"""
|
||||
|
||||
|
||||
if not population_score:
|
||||
raise ValueError("Population score is empty, cannot select parents.")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user