Class: Google::Apis::BigqueryV2::GlobalExplanation
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::GlobalExplanation
- 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
Global explanations containing the top most important features after training.
Instance Attribute Summary collapse
-
#class_label ⇒ String
Class label for this set of global explanations.
-
#explanations ⇒ Array<Google::Apis::BigqueryV2::Explanation>
A list of the top global explanations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GlobalExplanation
constructor
A new instance of GlobalExplanation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GlobalExplanation
Returns a new instance of GlobalExplanation.
3620 3621 3622 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3620 def initialize(**args) update!(**args) end |
Instance Attribute Details
#class_label ⇒ String
Class label for this set of global explanations. Will be empty/null for binary
logistic and linear regression models. Sorted alphabetically in descending
order.
Corresponds to the JSON property classLabel
3612 3613 3614 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3612 def class_label @class_label end |
#explanations ⇒ Array<Google::Apis::BigqueryV2::Explanation>
A list of the top global explanations. Sorted by absolute value of attribution
in descending order.
Corresponds to the JSON property explanations
3618 3619 3620 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3618 def explanations @explanations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3625 3626 3627 3628 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3625 def update!(**args) @class_label = args[:class_label] if args.key?(:class_label) @explanations = args[:explanations] if args.key?(:explanations) end |