Nous.Eval.JudgeCalibration.Result (nous v0.21.1)

Copy Markdown View Source

The outcome of Nous.Eval.JudgeCalibration.calibrate/3.

  • :fingerprint_id - Nous.Eval.Scorers.Judge.fingerprint_id/1 of the judge measured; a judge with another configuration is stale
  • :judge - its describe/1, as JSON-native data
  • :dataset_hash - content hash of the case set
  • :labels - the scale's labels, in display order
  • :n_cases, :n_tune, :n_holdout - case counts; :n_scored and :n_errors split the holdout cases
  • :agreement, :false_pass, :error_rate - %{estimate, ci: {lower, upper}, count, n} (Wilson, 95%); nil when n would be 0
  • :kappa - float or nil; :kappa_kind - :cohen or :quadratic_weighted
  • :confusion - %{labels: [label], matrix: [[count]]}, rows the human label, columns the judge's
  • :errors - %{case_id, kind, reason} per judge error
  • :usage - judge tokens summed over the replay (Nous.Usage)
  • :calibrated_at - when it ran (DateTime)

Summary

Types

interval()

@type interval() :: %{
  estimate: float(),
  ci: {float(), float()},
  count: non_neg_integer(),
  n: pos_integer()
}

t()

@type t() :: %Nous.Eval.JudgeCalibration.Result{
  agreement: interval() | nil,
  calibrated_at: DateTime.t(),
  confusion: %{labels: [String.t()], matrix: [[non_neg_integer()]]},
  dataset_hash: String.t(),
  error_rate: interval(),
  errors: [
    %{
      case_id: String.t(),
      kind: Nous.Eval.ScorerError.kind(),
      reason: String.t() | nil
    }
  ],
  false_pass: interval() | nil,
  fingerprint_id: String.t(),
  judge: map(),
  kappa: float() | nil,
  kappa_kind: :cohen | :quadratic_weighted,
  labels: [String.t()],
  n_cases: non_neg_integer(),
  n_errors: non_neg_integer(),
  n_holdout: non_neg_integer(),
  n_scored: non_neg_integer(),
  n_tune: non_neg_integer(),
  usage: Nous.Usage.t()
}