Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor
- 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
A neighbor of the query vector.
Instance Attribute Summary collapse
-
#datapoint ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexDatapoint
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) ⇒ GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor
constructor
A new instance of GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor
Returns a new instance of GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor.
12474 12475 12476 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12474 def initialize(**args) update!(**args) end |
Instance Attribute Details
#datapoint ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexDatapoint
A datapoint of Index.
Corresponds to the JSON property datapoint
12462 12463 12464 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12462 def datapoint @datapoint end |
#distance ⇒ Float
The distance between the neighbor and the dense embedding query.
Corresponds to the JSON property distance
12467 12468 12469 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12467 def distance @distance end |
#sparse_distance ⇒ Float
The distance between the neighbor and the query sparse_embedding.
Corresponds to the JSON property sparseDistance
12472 12473 12474 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12472 def sparse_distance @sparse_distance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12479 12480 12481 12482 12483 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12479 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 |