Expand description
Parent-selection operators.
Selection operators turn a fitness tensor into winner indices that the
caller uses (via Tensor::select) to gather parents out of the
population. The baseline is host-side sampling + a single device
gather; a fused kernel variant is tracked as
follow-up work.
§Fitness convention
Fitness values are interpreted as “lower is better” (cost). Tournament selection picks the smaller of the two sampled fitnesses.
Functions§
- tournament_
indices_ host - Binary tournament selection over a fitness slice.
- tournament_
select - Gather
n_winnersrows out of the population by tournament. - truncation_
indices_ host - Truncation selection: returns the indices of the
top_klowest- fitness members. - truncation_
select - Gather the
top_klowest-fitness rows out of the population.