# `Nous.Eval.Optimizer.Candidate`
[🔗](https://github.com/nyo16/nous/blob/v0.21.1/lib/nous/eval/optimizer/candidate.ex#L1)

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

# `t`

```elixir
@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()) =&gt; float()},
  step: non_neg_integer()
}
```

# `id`

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

The candidate's profile id.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
