Class: Google::Apis::BigqueryV2::Explanation

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

Overview

Explanation for a single feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Explanation

Returns a new instance of Explanation.



2893
2894
2895
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2893

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

Instance Attribute Details

#attributionFloat

Attribution of feature. Corresponds to the JSON property attribution

Returns:

  • (Float)


2885
2886
2887
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2885

def attribution
  @attribution
end

#feature_nameString

The full feature name. For non-numerical features, will be formatted like .. Overall size of feature name will always be truncated to first 120 characters. Corresponds to the JSON property featureName

Returns:

  • (String)


2891
2892
2893
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2891

def feature_name
  @feature_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2898
2899
2900
2901
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2898

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