Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::IndexDatapoint::SparseEmbedding (v0.53.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::IndexDatapoint::SparseEmbedding.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#dimensions

def dimensions() -> ::Array<::Integer>
Returns
  • (::Array<::Integer>) — Required. The list of indexes for the embedding values of the sparse vector.

#dimensions=

def dimensions=(value) -> ::Array<::Integer>
Parameter
  • value (::Array<::Integer>) — Required. The list of indexes for the embedding values of the sparse vector.
Returns
  • (::Array<::Integer>) — Required. The list of indexes for the embedding values of the sparse vector.

#values

def values() -> ::Array<::Float>
Returns
  • (::Array<::Float>) — Required. The list of embedding values of the sparse vector.

#values=

def values=(value) -> ::Array<::Float>
Parameter
  • value (::Array<::Float>) — Required. The list of embedding values of the sparse vector.
Returns
  • (::Array<::Float>) — Required. The list of embedding values of the sparse vector.