Repository navigation
Release PyGAD 3.9.0 - #382
Merged
Merged
Conversation
Refs #379.
Avoid overflow when summing probability-selection fitness
📊 Change summary16 files changed · +703 / −12 lines pie showData
title Lines changed per file (715 total)
"tests/test_categorical_genes.py" : 215
"tests/test_bounded_operator_rounding.py" : 152
"pygad/helper/misc.py" : 129
"pygad/utils/validation.py" : 63
"tests/test_parent_selection_regressions.py" : 62
"docs/source/gene_values.md" : 45
"docs/source/releases.md" : 9
"pygad/utils/crossover.py" : 8
"pygad/utils/parent_selection.py" : 8
"pygad/pygad.py" : 7
"pygad/utils/mutation.py" : 5
"docs/source/utils.md" : 4
"pygad/_version.py" : 2
"pygad/helper/__init__.py" : 2
"pygad/utils/__init__.py" : 2
"… 1 more files" : 2
Per-file breakdown
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PyGAD 3.9.0
Release Date: October 16, 2026.
int64,uint64,float16, andfloat32fitness values no longer overflow and raiseZeroDivisionError. Object arrays of Python integers keep exact values. See PR #381.gene_categoricalparameter marks genes whose values are categories with no order. For these genes, polynomial mutation picks one of the other allowed values at random and SBX crossover copies the value of one parent. The defaultNonekeeps the previous behavior. See Categorical Genes.gene_categoricalvalidation rule and operator behavior. Thepygad.helperandpygad.utilssubmodule versions are1.4.7and1.5.10.