Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding

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

Feature embedding vector for sparse index. An array of numbers whose values are located in the specified dimensions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding

Returns a new instance of GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding.



12288
12289
12290
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12288

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

Instance Attribute Details

#dimensionsArray<Fixnum>

Required. The list of indexes for the embedding values of the sparse vector. Corresponds to the JSON property dimensions

Returns:

  • (Array<Fixnum>)


12281
12282
12283
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12281

def dimensions
  @dimensions
end

#valuesArray<Float>

Required. The list of embedding values of the sparse vector. Corresponds to the JSON property values

Returns:

  • (Array<Float>)


12286
12287
12288
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12286

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12293
12294
12295
12296
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12293

def update!(**args)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @values = args[:values] if args.key?(:values)
end