Closed jakobj closed 6 months ago
permissible_values in Genome should be a list of arrays (https://github.com/Happy-Algorithms-League/hal-cgp/blob/master/cgp/genome.py#L107). However, it seems to be a list of scalars and arrays (e.g.,https://github.com/Happy-Algorithms-League/hal-cgp/blob/master/cgp/genome.py#L189 vs https://github.com/Happy-Algorithms-League/hal-cgp/blob/master/cgp/genome.py#L198).
permissible_values
Genome
This causes problems at other points in the code (e.g., Genome.mutate) and should be fixed. Ugh, if only we had strict typing. ;)
Genome.mutate
permissible_values
inGenome
should be a list of arrays (https://github.com/Happy-Algorithms-League/hal-cgp/blob/master/cgp/genome.py#L107). However, it seems to be a list of scalars and arrays (e.g.,https://github.com/Happy-Algorithms-League/hal-cgp/blob/master/cgp/genome.py#L189 vs https://github.com/Happy-Algorithms-League/hal-cgp/blob/master/cgp/genome.py#L198).This causes problems at other points in the code (e.g.,
Genome.mutate
) and should be fixed. Ugh, if only we had strict typing. ;)