Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationBiasConfig

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

Overview

Configuration for bias detection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ModelEvaluationBiasConfig

Returns a new instance of GoogleCloudAiplatformV1beta1ModelEvaluationBiasConfig.



12074
12075
12076
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12074

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

Instance Attribute Details

#bias_slicesGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationSliceSliceSliceSpec

Specification for how the data should be sliced. Corresponds to the JSON property biasSlices



12067
12068
12069
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12067

def bias_slices
  @bias_slices
end

#labelsArray<String>

Positive labels selection on the target field. Corresponds to the JSON property labels

Returns:

  • (Array<String>)


12072
12073
12074
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12072

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12079
12080
12081
12082
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12079

def update!(**args)
  @bias_slices = args[:bias_slices] if args.key?(:bias_slices)
  @labels = args[:labels] if args.key?(:labels)
end