modify act. agg in mutation. they can have option vals

fix a bug in function 'agg'
This commit is contained in:
wls2002
2023-05-07 23:00:04 +08:00
parent 47bb593a53
commit b257505bee
4 changed files with 46 additions and 52 deletions

View File

@@ -50,7 +50,7 @@ def initialize_genomes(pop_size: int,
default_response: float = 1.0,
default_act: int = 0,
default_agg: int = 0,
default_weight: float = 1.0) \
default_weight: float = 0.0) \
-> Tuple[NDArray, NDArray, NDArray, NDArray]:
"""
Initialize genomes with default values.