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.



7065
7066
7067
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7065

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)


7045
7046
7047
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7045

def max_value
  @max_value
end

#min_valueFloat

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

Returns:

  • (Float)


7050
7051
7052
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7050

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)


7056
7057
7058
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7056

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)


7063
7064
7065
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7063

def original_stddev
  @original_stddev
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7070
7071
7072
7073
7074
7075
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7070

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