Skip to content

ExperimentItemEvaluationContext TCase,TOutput

NexusLabs.Foundry.Evaluation

NexusLabs.Foundry.Evaluation.Experiments

ExperimentItemEvaluationContext<TCase,TOutput> Class

Provides a successful task output and its stable identity to an item evaluator.

public sealed record ExperimentItemEvaluationContext<TCase,TOutput> : System.IEquatable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemEvaluationContext<TCase, TOutput>>

Type parameters

TCase

The caller-owned case value type.

TOutput

The caller-owned output type.

Inheritance System.Object 🡒 ExperimentItemEvaluationContext\<TCase,TOutput>

Implements System.IEquatable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemEvaluationContext<TCase,TOutput>>

Properties

ExperimentItemEvaluationContext<TCase,TOutput>.Attempts Property

Gets the complete operational attempt history.

public System.Collections.Generic.IReadOnlyList<NexusLabs.Foundry.Evaluation.Experiments.ExperimentAttemptResult> Attempts { get; }

Property Value

System.Collections.Generic.IReadOnlyList<ExperimentAttemptResult>

ExperimentItemEvaluationContext<TCase,TOutput>.Case Property

Gets the materialized case.

public NexusLabs.Foundry.Evaluation.Experiments.ExperimentCase<TCase> Case { get; }

Property Value

NexusLabs.Foundry.Evaluation.Experiments.ExperimentCase<TCase>

ExperimentItemEvaluationContext<TCase,TOutput>.Features Property

Gets adapter-owned features for this statistical trial.

public NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemFeatureCollection Features { get; }

Property Value

ExperimentItemFeatureCollection

ExperimentItemEvaluationContext<TCase,TOutput>.Output Property

Gets the terminal successful task output.

public TOutput Output { get; }

Property Value

TOutput

ExperimentItemEvaluationContext<TCase,TOutput>.RunId Property

Gets the caller-supplied run identifier.

public string RunId { get; }

Property Value

System.String

ExperimentItemEvaluationContext<TCase,TOutput>.Sequence Property

Gets the zero-based stable item sequence.

public int Sequence { get; }

Property Value

System.Int32

ExperimentItemEvaluationContext<TCase,TOutput>.TrialIndex Property

Gets the one-based statistical trial index.

public int TrialIndex { get; }

Property Value

System.Int32