Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain

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

Overview

Domain details of the input feature value. Provides numeric information about the feature, such as its range (min, max). If the feature has been pre- processed, for example with z-scoring, then it provides information about how to recover the original feature. For example, if the input feature is an image and it has been pre-processed to obtain 0-mean and stddev = 1 values, then original_mean, and original_stddev refer to the mean and stddev of the original feature (e.g. image tensor) from which input feature (with mean = 0 and stddev = 1) was obtained.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain

Returns a new instance of GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain.



7326
7327
7328
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7326

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

Instance Attribute Details

#max_valueFloat

The maximum permissible value for this feature. Corresponds to the JSON property maxValue

Returns:

  • (Float)


7306
7307
7308
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7306

def max_value
  @max_value
end

#min_valueFloat

The minimum permissible value for this feature. Corresponds to the JSON property minValue

Returns:

  • (Float)


7311
7312
7313
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7311

def min_value
  @min_value
end

#original_meanFloat

If this input feature has been normalized to a mean value of 0, the original_mean specifies the mean value of the domain prior to normalization. Corresponds to the JSON property originalMean

Returns:

  • (Float)


7317
7318
7319
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7317

def original_mean
  @original_mean
end

#original_stddevFloat

If this input feature has been normalized to a standard deviation of 1.0, the original_stddev specifies the standard deviation of the domain prior to normalization. Corresponds to the JSON property originalStddev

Returns:

  • (Float)


7324
7325
7326
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7324

def original_stddev
  @original_stddev
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7331
7332
7333
7334
7335
7336
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7331

def update!(**args)
  @max_value = args[:max_value] if args.key?(:max_value)
  @min_value = args[:min_value] if args.key?(:min_value)
  @original_mean = args[:original_mean] if args.key?(:original_mean)
  @original_stddev = args[:original_stddev] if args.key?(:original_stddev)
end