Class: Google::Apis::LanguageV1beta2::XpsTablesModelColumnInfo

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 information specific to given column and Tables Model, in context of the Model and the predictions created by it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsTablesModelColumnInfo

Returns a new instance of XpsTablesModelColumnInfo.



4080
4081
4082
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4080

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

Instance Attribute Details

#column_idFixnum

The ID of the column. Corresponds to the JSON property columnId

Returns:

  • (Fixnum)


4065
4066
4067
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4065

def column_id
  @column_id
end

#feature_importanceFloat

When given as part of a Model: Measurement of how much model predictions correctness on the TEST data depend on values in this column. A value between 0 and 1, higher means higher influence. These values are normalized - for all input feature columns of a given model they add to 1. When given back by Predict or Batch Predict: Measurement of how impactful for the prediction returned for the given row the value in this column was. Specifically, the feature importance specifies the marginal contribution that the feature made to the prediction score compared to the baseline score. These values are computed using the Sampled Shapley method. Corresponds to the JSON property featureImportance

Returns:

  • (Float)


4078
4079
4080
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4078

def feature_importance
  @feature_importance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4085
4086
4087
4088
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4085

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