Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FindNeighborsResponseNeighbor

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1FindNeighborsResponseNeighbor

Returns a new instance of GoogleCloudAiplatformV1FindNeighborsResponseNeighbor.



8817
8818
8819
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8817

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#datapointGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapoint

A datapoint of Index. Corresponds to the JSON property datapoint



8810
8811
8812
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8810

def datapoint
  @datapoint
end

#distanceFloat

The distance between the neighbor and the query vector. Corresponds to the JSON property distance

Returns:

  • (Float)


8815
8816
8817
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8815

def distance
  @distance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8822
8823
8824
8825
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8822

def update!(**args)
  @datapoint = args[:datapoint] if args.key?(:datapoint)
  @distance = args[:distance] if args.key?(:distance)
end