Skip to content

ExperimentDeterministicPolicyEvidence

NexusLabs.Foundry.Evaluation

NexusLabs.Foundry.Evaluation.Experiments

ExperimentDeterministicPolicyEvidence Class

Describes deterministic threshold evidence from one named run evaluation.

public sealed record ExperimentDeterministicPolicyEvidence : System.IEquatable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentDeterministicPolicyEvidence>

Inheritance System.Object 🡒 ExperimentDeterministicPolicyEvidence

Implements System.IEquatable<ExperimentDeterministicPolicyEvidence>

Properties

ExperimentDeterministicPolicyEvidence.RunEvaluationName Property

Gets the run-evaluator name that supplied metrics.

public string RunEvaluationName { get; }

Property Value

System.String

ExperimentDeterministicPolicyEvidence.Thresholds Property

Gets the structured threshold result when metrics were available.

public NexusLabs.Foundry.Evaluation.EvaluationThresholdResult? Thresholds { get; }

Property Value

EvaluationThresholdResult

ExperimentDeterministicPolicyEvidence.UnavailableReason Property

Gets why the named run evaluation could not supply metrics.

public string? UnavailableReason { get; }

Property Value

System.String

Methods

ExperimentDeterministicPolicyEvidence.Available(string, EvaluationThresholdResult) Method

Creates evidence from an available threshold result.

public static NexusLabs.Foundry.Evaluation.Experiments.ExperimentDeterministicPolicyEvidence Available(string runEvaluationName, NexusLabs.Foundry.Evaluation.EvaluationThresholdResult thresholds);

Parameters

runEvaluationName System.String

The run-evaluator name that supplied metrics.

thresholds EvaluationThresholdResult

The structured threshold result.

Returns

ExperimentDeterministicPolicyEvidence
Available deterministic policy evidence.

Exceptions

System.ArgumentException
runEvaluationName is empty or consists only of white-space characters.

System.ArgumentNullException
thresholds, its outcome collection, or one of its outcomes is null.

System.ArgumentOutOfRangeException
The threshold decision is not defined.

ExperimentDeterministicPolicyEvidence.Unavailable(string, string) Method

Creates evidence explaining why threshold metrics were unavailable.

public static NexusLabs.Foundry.Evaluation.Experiments.ExperimentDeterministicPolicyEvidence Unavailable(string runEvaluationName, string unavailableReason);

Parameters

runEvaluationName System.String

The run-evaluator name expected to supply metrics.

unavailableReason System.String

The stable reason threshold metrics were unavailable.

Returns

ExperimentDeterministicPolicyEvidence
Unavailable deterministic policy evidence.

Exceptions

System.ArgumentException
runEvaluationName or unavailableReason is empty or consists only of white-space characters.