Expand description
Phenotype construction — turning a TopologyGenome into a callable network.
PhenotypeBuilder abstracts how a genome becomes a network so a future
CPPN/HyperNEAT builder is a new impl, not a trait change. The reference
builder, InterpretedBuilder, produces an InterpretedPhenotype: a
host-side feedforward evaluator built from bare Tensor<B, 2> arithmetic
over the genome’s enabled connections in topological order — no Burn
Module, no autodiff, no Recorder. NEAT phenotypes need only a forward
pass, so skipping Burn’s Module (whose #[derive] needs a static field
structure a data-defined topology cannot supply) costs nothing.
The interpreted seam (PhenotypeBuilder/Phenotype) evaluates one genome
at a time. Its population-batched companion, BatchPhenotypeEvaluator, runs
the whole population in one device-resident forward pass; the dense-padded
DensePaddedEvaluator is the stock-Burn implementation.
Structs§
- Dense
Padded Evaluator - Dense-padded
BatchPhenotypeEvaluator. - Interpreted
Builder - The v1 reference builder — produces an
InterpretedPhenotype. - Interpreted
Phenotype - Host-side feedforward reference phenotype.
Traits§
- Batch
Phenotype Evaluator - Population-level batched forward pass — the device-resident companion to the
per-genome
PhenotypeBuilder/Phenotypeinterpreted seam. - Phenotype
- A callable network: a forward pass from a batch of inputs to a batch of outputs.
- Phenotype
Builder - Builds a callable
Phenotypefrom aTopologyGenome.