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 query vector.
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.
7922 7923 7924 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7922 def initialize(**args) update!(**args) end |
Instance Attribute Details
#datapoint ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapoint
A datapoint of Index.
Corresponds to the JSON property datapoint
7915 7916 7917 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7915 def datapoint @datapoint end |
#distance ⇒ Float
The distance between the neighbor and the query vector.
Corresponds to the JSON property distance
7920 7921 7922 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7920 def distance @distance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7927 7928 7929 7930 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 7927 def update!(**args) @datapoint = args[:datapoint] if args.key?(:datapoint) @distance = args[:distance] if args.key?(:distance) end |