Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SampledShapleyAttribution

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

An attribution method that approximates Shapley values for features that contribute to the label being predicted. A sampling strategy is used to approximate the value rather than considering all subsets of features.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SampledShapleyAttribution

Returns a new instance of GoogleCloudAiplatformV1beta1SampledShapleyAttribution.



24482
24483
24484
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24482

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

Instance Attribute Details

#path_countFixnum

Required. The number of feature permutations to consider when approximating the Shapley values. Valid range of its value is [1, 50], inclusively. Corresponds to the JSON property pathCount

Returns:

  • (Fixnum)


24480
24481
24482
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24480

def path_count
  @path_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24487
24488
24489
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24487

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