AzureAIProjectsModelFactory.EvaluatorMetric Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Evaluator Metric.
public static Azure.AI.Projects.Evaluation.EvaluatorMetric EvaluatorMetric(Azure.AI.Projects.Evaluation.EvaluatorMetricType? type = default, Azure.AI.Projects.Evaluation.EvaluatorMetricDirection? desirableDirection = default, float? minValue = default, float? maxValue = default, float? threshold = default, bool? isPrimary = default);
static member EvaluatorMetric : Nullable<Azure.AI.Projects.Evaluation.EvaluatorMetricType> * Nullable<Azure.AI.Projects.Evaluation.EvaluatorMetricDirection> * Nullable<single> * Nullable<single> * Nullable<single> * Nullable<bool> -> Azure.AI.Projects.Evaluation.EvaluatorMetric
Public Shared Function EvaluatorMetric (Optional type As Nullable(Of EvaluatorMetricType) = Nothing, Optional desirableDirection As Nullable(Of EvaluatorMetricDirection) = Nothing, Optional minValue As Nullable(Of Single) = Nothing, Optional maxValue As Nullable(Of Single) = Nothing, Optional threshold As Nullable(Of Single) = Nothing, Optional isPrimary As Nullable(Of Boolean) = Nothing) As EvaluatorMetric
Parameters
- type
- Nullable<EvaluatorMetricType>
Type of the metric.
- desirableDirection
- Nullable<EvaluatorMetricDirection>
It indicates whether a higher value is better or a lower value is better for this metric.
Maximum value for the metric. If not specified, it is assumed to be unbounded.
Returns
A new EvaluatorMetric instance for mocking.