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.



7131
7132
7133
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7131

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)


7111
7112
7113
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7111

def max_value
  @max_value
end

#min_valueFloat

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

Returns:

  • (Float)


7116
7117
7118
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7116

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)


7122
7123
7124
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7122

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)


7129
7130
7131
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7129

def original_stddev
  @original_stddev
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7136
7137
7138
7139
7140
7141
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7136

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