Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapointSparseEmbedding
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapointSparseEmbedding
- 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
Feature embedding vector for sparse index. An array of numbers whose values are located in the specified dimensions.
Instance Attribute Summary collapse
-
#dimensions ⇒ Array<Fixnum>
Required.
-
#values ⇒ Array<Float>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1IndexDatapointSparseEmbedding
constructor
A new instance of GoogleCloudAiplatformV1IndexDatapointSparseEmbedding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1IndexDatapointSparseEmbedding
Returns a new instance of GoogleCloudAiplatformV1IndexDatapointSparseEmbedding.
12915 12916 12917 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12915 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dimensions ⇒ Array<Fixnum>
Required. The list of indexes for the embedding values of the sparse vector.
Corresponds to the JSON property dimensions
12908 12909 12910 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12908 def dimensions @dimensions end |
#values ⇒ Array<Float>
Required. The list of embedding values of the sparse vector.
Corresponds to the JSON property values
12913 12914 12915 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12913 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12920 12921 12922 12923 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12920 def update!(**args) @dimensions = args[:dimensions] if args.key?(:dimensions) @values = args[:values] if args.key?(:values) end |