Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SampledShapleyAttribution

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/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) ⇒ GoogleCloudAiplatformV1SampledShapleyAttribution

Returns a new instance of GoogleCloudAiplatformV1SampledShapleyAttribution.



22228
22229
22230
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22228

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)


22226
22227
22228
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22226

def path_count
  @path_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22233
22234
22235
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22233

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