Class: Google::Apis::LanguageV1beta2::XpsIntegratedGradientsAttribution

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

Overview

An attribution method that computes 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) ⇒ XpsIntegratedGradientsAttribution

Returns a new instance of XpsIntegratedGradientsAttribution.



3025
3026
3027
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3025

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

Instance Attribute Details

#step_countFixnum

The 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 within the desired error range. Valid range of its value is [1, 100], inclusively. Corresponds to the JSON property stepCount

Returns:

  • (Fixnum)


3023
3024
3025
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3023

def step_count
  @step_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3030
3031
3032
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3030

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