Class: Google::Apis::CesV1::EvaluationMetricsThresholds

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

Threshold settings for metrics in an Evaluation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EvaluationMetricsThresholds

Returns a new instance of EvaluationMetricsThresholds.



2955
2956
2957
# File 'lib/google/apis/ces_v1/classes.rb', line 2955

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#golden_evaluation_metrics_thresholdsGoogle::Apis::CesV1::EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds

Settings for golden evaluations. Corresponds to the JSON property goldenEvaluationMetricsThresholds



2937
2938
2939
# File 'lib/google/apis/ces_v1/classes.rb', line 2937

def golden_evaluation_metrics_thresholds
  @golden_evaluation_metrics_thresholds
end

#golden_hallucination_metric_behaviorString

Optional. The hallucination metric behavior for golden evaluations. Corresponds to the JSON property goldenHallucinationMetricBehavior

Returns:

  • (String)


2942
2943
2944
# File 'lib/google/apis/ces_v1/classes.rb', line 2942

def golden_hallucination_metric_behavior
  @golden_hallucination_metric_behavior
end

#hallucination_metric_behaviorString

Optional. Deprecated: Use golden_hallucination_metric_behavior instead. The hallucination metric behavior is currently used for golden evaluations. Corresponds to the JSON property hallucinationMetricBehavior

Returns:

  • (String)


2948
2949
2950
# File 'lib/google/apis/ces_v1/classes.rb', line 2948

def hallucination_metric_behavior
  @hallucination_metric_behavior
end

#scenario_hallucination_metric_behaviorString

Optional. The hallucination metric behavior for scenario evaluations. Corresponds to the JSON property scenarioHallucinationMetricBehavior

Returns:

  • (String)


2953
2954
2955
# File 'lib/google/apis/ces_v1/classes.rb', line 2953

def scenario_hallucination_metric_behavior
  @scenario_hallucination_metric_behavior
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2960
2961
2962
2963
2964
2965
# File 'lib/google/apis/ces_v1/classes.rb', line 2960

def update!(**args)
  @golden_evaluation_metrics_thresholds = args[:golden_evaluation_metrics_thresholds] if args.key?(:golden_evaluation_metrics_thresholds)
  @golden_hallucination_metric_behavior = args[:golden_hallucination_metric_behavior] if args.key?(:golden_hallucination_metric_behavior)
  @hallucination_metric_behavior = args[:hallucination_metric_behavior] if args.key?(:hallucination_metric_behavior)
  @scenario_hallucination_metric_behavior = args[:scenario_hallucination_metric_behavior] if args.key?(:scenario_hallucination_metric_behavior)
end