Class: Google::Apis::LanguageV1::XpsTablesModelColumnInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/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.



4060
4061
4062
# File 'lib/google/apis/language_v1/classes.rb', line 4060

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

Instance Attribute Details

#column_idFixnum

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

Returns:

  • (Fixnum)


4045
4046
4047
# File 'lib/google/apis/language_v1/classes.rb', line 4045

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)


4058
4059
4060
# File 'lib/google/apis/language_v1/classes.rb', line 4058

def feature_importance
  @feature_importance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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