Nous.Eval.Optimizer.Candidate (nous v0.21.1)

Copy Markdown View Source

A profile in an optimization's pool.

  • :profile - the sealed Nous.Profile
  • :parent_id - the id of the candidate it was derived from (nil for the seed); a merge has two, in :merged_from
  • :step - the search step that produced it (0 for the seed)
  • :scores - case id => objective on the selection set the strategy uses (validation for GEPA, the fixed train subset for OPRO)
  • :mean - the mean of :scores
  • :changed - the component keys that differ from its parent

Summary

Functions

The candidate's profile id.

Types

t()

@type t() :: %Nous.Eval.Optimizer.Candidate{
  changed: [String.t()],
  mean: float(),
  merged_from: [String.t()],
  parent_id: String.t() | nil,
  profile: Nous.Profile.t(),
  scores: %{required(String.t()) => float()},
  step: non_neg_integer()
}

Functions

id(candidate)

@spec id(t()) :: String.t()

The candidate's profile id.