Class: Google::Apis::MlV1::GoogleCloudMlV1IntegratedGradientsAttribution

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

Overview

Attributes credit by computing the Aumann-Shapley value taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1703.01365

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1IntegratedGradientsAttribution

Returns a new instance of GoogleCloudMlV1IntegratedGradientsAttribution.



1341
1342
1343
# File 'lib/google/apis/ml_v1/classes.rb', line 1341

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

Instance Attribute Details

#num_integral_stepsFixnum

Number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is met within the desired error range. Corresponds to the JSON property numIntegralSteps

Returns:

  • (Fixnum)


1339
1340
1341
# File 'lib/google/apis/ml_v1/classes.rb', line 1339

def num_integral_steps
  @num_integral_steps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1346
1347
1348
# File 'lib/google/apis/ml_v1/classes.rb', line 1346

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