Skip to content

Types

Type definitions shared across evosax.

Solution, Population and Metrics are PyTrees. A Population has the same structure as a Solution with an additional leading population axis on every leaf. Fitness is an array with one value per population member.

State

Base class for immutable state dataclasses.

replace

replace(**updates: Any) -> StateT

Return a copy with the supplied fields replaced.

Params

Base class for immutable hyperparameter dataclasses.