Class: Google::Apis::LanguageV2::XpsTablesModelColumnInfo

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



3775
3776
3777
# File 'lib/google/apis/language_v2/classes.rb', line 3775

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

Instance Attribute Details

#column_idFixnum

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

Returns:

  • (Fixnum)


3760
3761
3762
# File 'lib/google/apis/language_v2/classes.rb', line 3760

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)


3773
3774
3775
# File 'lib/google/apis/language_v2/classes.rb', line 3773

def feature_importance
  @feature_importance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3780
3781
3782
3783
# File 'lib/google/apis/language_v2/classes.rb', line 3780

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