Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPredictPredictionTftFeatureImportance

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaPredictPredictionTftFeatureImportance

Returns a new instance of GoogleCloudAiplatformV1beta1SchemaPredictPredictionTftFeatureImportance.



31521
31522
31523
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31521

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

Instance Attribute Details

#attribute_columnsArray<String>

Corresponds to the JSON property attributeColumns

Returns:

  • (Array<String>)


31493
31494
31495
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31493

def attribute_columns
  @attribute_columns
end

#attribute_weightsArray<Float>

Corresponds to the JSON property attributeWeights

Returns:

  • (Array<Float>)


31498
31499
31500
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31498

def attribute_weights
  @attribute_weights
end

#context_columnsArray<String>

Corresponds to the JSON property contextColumns

Returns:

  • (Array<String>)


31503
31504
31505
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31503

def context_columns
  @context_columns
end

#context_weightsArray<Float>

TFT feature importance values. Each pair for context/horizon/attribute should have the same shape since the weight corresponds to the column names. Corresponds to the JSON property contextWeights

Returns:

  • (Array<Float>)


31509
31510
31511
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31509

def context_weights
  @context_weights
end

#horizon_columnsArray<String>

Corresponds to the JSON property horizonColumns

Returns:

  • (Array<String>)


31514
31515
31516
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31514

def horizon_columns
  @horizon_columns
end

#horizon_weightsArray<Float>

Corresponds to the JSON property horizonWeights

Returns:

  • (Array<Float>)


31519
31520
31521
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31519

def horizon_weights
  @horizon_weights
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31526
31527
31528
31529
31530
31531
31532
31533
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31526

def update!(**args)
  @attribute_columns = args[:attribute_columns] if args.key?(:attribute_columns)
  @attribute_weights = args[:attribute_weights] if args.key?(:attribute_weights)
  @context_columns = args[:context_columns] if args.key?(:context_columns)
  @context_weights = args[:context_weights] if args.key?(:context_weights)
  @horizon_columns = args[:horizon_columns] if args.key?(:horizon_columns)
  @horizon_weights = args[:horizon_weights] if args.key?(:horizon_weights)
end