Skip to main content

Module phenotype

Module phenotype 

Source
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§

DensePaddedEvaluator
Dense-padded BatchPhenotypeEvaluator.
InterpretedBuilder
The v1 reference builder — produces an InterpretedPhenotype.
InterpretedPhenotype
Host-side feedforward reference phenotype.

Traits§

BatchPhenotypeEvaluator
Population-level batched forward pass — the device-resident companion to the per-genome PhenotypeBuilder/Phenotype interpreted seam.
Phenotype
A callable network: a forward pass from a batch of inputs to a batch of outputs.
PhenotypeBuilder
Builds a callable Phenotype from a TopologyGenome.