Class: Google::Apis::MlV1::GoogleCloudMlV1IntegratedGradientsAttribution
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1IntegratedGradientsAttribution
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/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: http://proceedings.mlr.press/v70/sundararajan17a.html
Instance Attribute Summary collapse
-
#num_integral_steps ⇒ Fixnum
Number of steps for approximating the path integral.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1IntegratedGradientsAttribution
constructor
A new instance of GoogleCloudMlV1IntegratedGradientsAttribution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1IntegratedGradientsAttribution
Returns a new instance of GoogleCloudMlV1IntegratedGradientsAttribution.
1152 1153 1154 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1152 def initialize(**args) update!(**args) end |
Instance Attribute Details
#num_integral_steps ⇒ Fixnum
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
1150 1151 1152 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1150 def num_integral_steps @num_integral_steps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1157 1158 1159 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1157 def update!(**args) @num_integral_steps = args[:num_integral_steps] if args.key?(:num_integral_steps) end |