[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-12-02 08:53:14 +00:00
parent 20184aa433
commit 064704be46

View File

@ -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.")