pg.geno¶
Program genome and genotypes.
Program genome (DNA) is a representation for encoding actions for manipulating
symbolic objects. Genotypes (pg.DNASpec
) are the specification on
how to generate them. Genotypes are separated from their corresponding hyper
values (pyglove.HyperValue
) which generate client-side objects, in the
aim to decouple the algorithms that generate genomes from the ones that consume
them. As a result, the algorithms can be applied on different user programs
for optimization.
Genotypes map 1:1 to hyper primitives as the following:
Genotype class |
Hyper class |
---|---|