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.
2788 2789 2790 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2788 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
2770 2771 2772 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2770 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
2775 2776 2777 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2775 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
2781 2782 2783 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2781 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
2786 2787 2788 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2786 def scenario_hallucination_metric_behavior @scenario_hallucination_metric_behavior end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2793 2794 2795 2796 2797 2798 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2793 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 |