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.



3072
3073
3074
# File 'lib/google/apis/ces_v1/classes.rb', line 3072

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



3054
3055
3056
# File 'lib/google/apis/ces_v1/classes.rb', line 3054

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)


3059
3060
3061
# File 'lib/google/apis/ces_v1/classes.rb', line 3059

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)


3065
3066
3067
# File 'lib/google/apis/ces_v1/classes.rb', line 3065

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)


3070
3071
3072
# File 'lib/google/apis/ces_v1/classes.rb', line 3070

def scenario_hallucination_metric_behavior
  @scenario_hallucination_metric_behavior
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3077
3078
3079
3080
3081
3082
# File 'lib/google/apis/ces_v1/classes.rb', line 3077

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