PyGAD-2.10.1
Changes in PyGAD 2.10.1
- In the
gene_space
parameter, anyNone
value (regardless of its index or axis), is replaced by a randomly generated number based on the 3 parametersinit_range_low
,init_range_high
, andgene_type
. So, theNone
value in[..., None, ...]
or[..., [..., None, ...], ...]
are replaced with random values. This gives more freedom in building the space of values for the genes. - All the numbers passed to the
gene_space
parameter are casted to the type specified in thegene_type
parameter. - The
numpy.uint
data type is supported for the parameters that accept integer values. - In the
pygad.kerasga
module, themodel_weights_as_vector()
function uses thetrainable
attribute of the model's layers to only return the trainable weights in the network. So, only the trainable layers with theirtrainable
attribute set toTrue
(trainable=True
), which is the default value, have their weights evolved. All non-trainable layers with thetrainable
attribute set toFalse
(trainable=False
) will not be evolved. Thanks to Prof. Tamer A. Farrag for pointing about that at GitHub.