Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExamplesOverride

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

Overview

Overrides for example-based explanations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ExamplesOverride

Returns a new instance of GoogleCloudAiplatformV1beta1ExamplesOverride.



8179
8180
8181
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8179

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

Instance Attribute Details

#crowding_countFixnum

The number of neighbors to return that have the same crowding tag. Corresponds to the JSON property crowdingCount

Returns:

  • (Fixnum)


8156
8157
8158
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8156

def crowding_count
  @crowding_count
end

#data_formatString

The format of the data being provided with each call. Corresponds to the JSON property dataFormat

Returns:

  • (String)


8161
8162
8163
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8161

def data_format
  @data_format
end

#neighbor_countFixnum

The number of neighbors to return. Corresponds to the JSON property neighborCount

Returns:

  • (Fixnum)


8166
8167
8168
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8166

def neighbor_count
  @neighbor_count
end

#restrictionsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExamplesRestrictionsNamespace>

Restrict the resulting nearest neighbors to respect these constraints. Corresponds to the JSON property restrictions



8171
8172
8173
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8171

def restrictions
  @restrictions
end

#return_embeddingsBoolean Also known as: return_embeddings?

If true, return the embeddings instead of neighbors. Corresponds to the JSON property returnEmbeddings

Returns:

  • (Boolean)


8176
8177
8178
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8176

def return_embeddings
  @return_embeddings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8184
8185
8186
8187
8188
8189
8190
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8184

def update!(**args)
  @crowding_count = args[:crowding_count] if args.key?(:crowding_count)
  @data_format = args[:data_format] if args.key?(:data_format)
  @neighbor_count = args[:neighbor_count] if args.key?(:neighbor_count)
  @restrictions = args[:restrictions] if args.key?(:restrictions)
  @return_embeddings = args[:return_embeddings] if args.key?(:return_embeddings)
end