Incremental evaluation policy - progressively evaluates validation set.
Starts with a small sample and expands for promising candidates. Reduces computation by avoiding full evaluation for poor candidates.
Options
:initial_sample_size- Starting sample size (default: 10):increment_size- Samples to add each time (default: 5):max_sample_size- Max before full eval (default: 50):full_eval_threshold- Score threshold for full eval (default: 0.7):seed- Random seed (default: 0)
Summary
Types
@type t() :: %GEPA.Strategies.EvaluationPolicy.Incremental{ evaluated_samples: %{required(non_neg_integer()) => MapSet.t()}, full_eval_threshold: float(), increment_size: pos_integer(), initial_sample_size: pos_integer(), max_sample_size: pos_integer(), seed: integer() }
Functions
See GEPA.Strategies.EvaluationPolicy.Full.calculate_avg_and_coverage/1.
@spec get_eval_batch( t(), GEPA.DataLoader.t(), GEPA.State.t(), non_neg_integer() | nil ) :: [term()]
@spec select_samples(t(), non_neg_integer(), [term()]) :: {[term()], t()}
@spec should_do_full_eval?(t(), non_neg_integer(), float()) :: boolean()
@spec update_evaluated(t(), non_neg_integer(), [term()]) :: t()