ExperimentRunEvaluationThresholdPolicy TCase,TOutput
NexusLabs.Foundry.Evaluation¶
NexusLabs.Foundry.Evaluation.Experiments¶
ExperimentRunEvaluationThresholdPolicy<TCase,TOutput> Class¶
Applies reusable deterministic thresholds to one named run evaluation.
public sealed class ExperimentRunEvaluationThresholdPolicy<TCase,TOutput> : NexusLabs.Foundry.Evaluation.Experiments.IExperimentRunPolicy<TCase, TOutput>
Type parameters¶
TCase
The caller-owned case value type.
TOutput
The caller-owned output type.
Inheritance System.Object 🡒 ExperimentRunEvaluationThresholdPolicy\<TCase,TOutput>
Implements NexusLabs.Foundry.Evaluation.Experiments.IExperimentRunPolicy<TCase,TOutput>
Constructors¶
ExperimentRunEvaluationThresholdPolicy(string, string, EvaluationThresholdEvaluator) Constructor¶
Initializes a deterministic run-evaluation threshold policy.
public ExperimentRunEvaluationThresholdPolicy(string name, string runEvaluationName, NexusLabs.Foundry.Evaluation.EvaluationThresholdEvaluator thresholds);
Parameters¶
name System.String
The stable policy name.
runEvaluationName System.String
The run evaluator that supplies metrics.
thresholds EvaluationThresholdEvaluator
The configured reusable threshold evaluator.
Exceptions¶
System.ArgumentNullException
name, runEvaluationName, or
thresholds is null.
System.ArgumentException
name or runEvaluationName is empty or consists only of
white-space characters.
ExperimentRunEvaluationThresholdPolicy(string, string, EvaluationThresholdEvaluator, bool, EvaluationMissingMetricBehavior) Constructor¶
Initializes a deterministic run-evaluation threshold policy with an explicit required flag and missing metric behavior.
public ExperimentRunEvaluationThresholdPolicy(string name, string runEvaluationName, NexusLabs.Foundry.Evaluation.EvaluationThresholdEvaluator thresholds, bool isRequired, NexusLabs.Foundry.Evaluation.EvaluationMissingMetricBehavior missingMetricBehavior);
Parameters¶
name System.String
The stable policy name.
runEvaluationName System.String
The run evaluator that supplies metrics.
thresholds EvaluationThresholdEvaluator
The configured reusable threshold evaluator.
isRequired System.Boolean
Whether this policy contributes to the run decision.
missingMetricBehavior EvaluationMissingMetricBehavior
The treatment for unavailable, missing, or invalid required evidence.
Exceptions¶
System.ArgumentNullException
name, runEvaluationName, or
thresholds is null.
System.ArgumentException
name or runEvaluationName is empty or consists only of
white-space characters.
System.ArgumentOutOfRangeException
missingMetricBehavior is not defined.
Properties¶
ExperimentRunEvaluationThresholdPolicy<TCase,TOutput>.IsRequired Property¶
Gets a value indicating whether this policy contributes to the run decision.
Implements IsRequired
Property Value¶
ExperimentRunEvaluationThresholdPolicy<TCase,TOutput>.Kind Property¶
Gets the evidence model used by the policy.
Implements Kind
Property Value¶
ExperimentRunEvaluationThresholdPolicy<TCase,TOutput>.Name Property¶
Gets the stable policy name.
Implements Name
Property Value¶
ExperimentRunEvaluationThresholdPolicy<TCase,TOutput>.RunEvaluationName Property¶
Gets the run evaluator that supplies metrics.
Property Value¶
Methods¶
ExperimentRunEvaluationThresholdPolicy<TCase,TOutput>.EvaluateAsync(ExperimentPolicyContext<TCase,TOutput>, CancellationToken) Method¶
Evaluates complete experiment measurements.
public System.Threading.Tasks.ValueTask<NexusLabs.Foundry.Evaluation.Experiments.ExperimentPolicyVerdict> EvaluateAsync(NexusLabs.Foundry.Evaluation.Experiments.ExperimentPolicyContext<TCase,TOutput> context, System.Threading.CancellationToken cancellationToken);
Parameters¶
context NexusLabs.Foundry.Evaluation.Experiments.ExperimentPolicyContext<TCase,TOutput>
The complete policy context.
cancellationToken System.Threading.CancellationToken
The caller cancellation token.
Implements EvaluateAsync(ExperimentPolicyContext<TCase,TOutput>, CancellationToken)
Returns¶
System.Threading.Tasks.ValueTask<ExperimentPolicyVerdict>
The structured policy evaluation.