Class: Google::Apis::CesV1::EvaluationMetricsThresholds
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::EvaluationMetricsThresholds
- 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
-
#golden_evaluation_metrics_thresholds ⇒ Google::Apis::CesV1::EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds
Settings for golden evaluations.
-
#golden_hallucination_metric_behavior ⇒ String
Optional.
-
#hallucination_metric_behavior ⇒ String
Optional.
-
#scenario_hallucination_metric_behavior ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EvaluationMetricsThresholds
constructor
A new instance of EvaluationMetricsThresholds.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EvaluationMetricsThresholds
Returns a new instance of EvaluationMetricsThresholds.
3135 3136 3137 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3135 def initialize(**args) update!(**args) end |
Instance Attribute Details
#golden_evaluation_metrics_thresholds ⇒ Google::Apis::CesV1::EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds
Settings for golden evaluations.
Corresponds to the JSON property goldenEvaluationMetricsThresholds
3117 3118 3119 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3117 def golden_evaluation_metrics_thresholds @golden_evaluation_metrics_thresholds end |
#golden_hallucination_metric_behavior ⇒ String
Optional. The hallucination metric behavior for golden evaluations.
Corresponds to the JSON property goldenHallucinationMetricBehavior
3122 3123 3124 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3122 def golden_hallucination_metric_behavior @golden_hallucination_metric_behavior end |
#hallucination_metric_behavior ⇒ String
Optional. Deprecated: Use golden_hallucination_metric_behavior instead. The
hallucination metric behavior is currently used for golden evaluations.
Corresponds to the JSON property hallucinationMetricBehavior
3128 3129 3130 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3128 def hallucination_metric_behavior @hallucination_metric_behavior end |
#scenario_hallucination_metric_behavior ⇒ String
Optional. The hallucination metric behavior for scenario evaluations.
Corresponds to the JSON property scenarioHallucinationMetricBehavior
3133 3134 3135 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3133 def scenario_hallucination_metric_behavior @scenario_hallucination_metric_behavior end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3140 3141 3142 3143 3144 3145 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3140 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 |