Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FindNeighborsResponseNeighbor
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FindNeighborsResponseNeighbor
- 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
A neighbor of the query vector.
Instance Attribute Summary collapse
-
#datapoint ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapoint
A datapoint of Index.
-
#distance ⇒ Float
The distance between the neighbor and the dense embedding query.
-
#sparse_distance ⇒ Float
The distance between the neighbor and the query sparse_embedding.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1FindNeighborsResponseNeighbor
constructor
A new instance of GoogleCloudAiplatformV1FindNeighborsResponseNeighbor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1FindNeighborsResponseNeighbor
Returns a new instance of GoogleCloudAiplatformV1FindNeighborsResponseNeighbor.
9717 9718 9719 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9717 def initialize(**args) update!(**args) end |
Instance Attribute Details
#datapoint ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapoint
A datapoint of Index.
Corresponds to the JSON property datapoint
9705 9706 9707 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9705 def datapoint @datapoint end |
#distance ⇒ Float
The distance between the neighbor and the dense embedding query.
Corresponds to the JSON property distance
9710 9711 9712 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9710 def distance @distance end |
#sparse_distance ⇒ Float
The distance between the neighbor and the query sparse_embedding.
Corresponds to the JSON property sparseDistance
9715 9716 9717 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9715 def sparse_distance @sparse_distance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9722 9723 9724 9725 9726 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9722 def update!(**args) @datapoint = args[:datapoint] if args.key?(:datapoint) @distance = args[:distance] if args.key?(:distance) @sparse_distance = args[:sparse_distance] if args.key?(:sparse_distance) end |