GEPA.Strategies.CandidateSelector.CurrentBest (GEPA v0.3.0)

Copy Markdown View Source

Greedy selector - always picks the highest-scoring program.

Uses exploitation without exploration. Good for final refinement phase.

Summary

Functions

Return the index of the best-scoring program using average score and coverage.

Functions

best_candidate_idx(state)

@spec best_candidate_idx(GEPA.State.t()) :: GEPA.Types.program_idx()

Return the index of the best-scoring program using average score and coverage.

select(state, rand_state)

@spec select(GEPA.State.t(), :rand.state() | nil) ::
  {GEPA.Types.program_idx(), :rand.state()}