Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor
- 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
-
#distance ⇒ Float
The distance between the neighbor and the query vector.
-
#entity_id ⇒ String
The id of the similar entity.
-
#entity_key_values ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse
Response message for FeatureOnlineStoreService.FetchFeatureValues Corresponds to the JSON property
entityKeyValues.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor
constructor
A new instance of GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor
Returns a new instance of GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor.
18926 18927 18928 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18926 def initialize(**args) update!(**args) end |
Instance Attribute Details
#distance ⇒ Float
The distance between the neighbor and the query vector.
Corresponds to the JSON property distance
18914 18915 18916 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18914 def distance @distance end |
#entity_id ⇒ String
The id of the similar entity.
Corresponds to the JSON property entityId
18919 18920 18921 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18919 def entity_id @entity_id end |
#entity_key_values ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse
Response message for FeatureOnlineStoreService.FetchFeatureValues
Corresponds to the JSON property entityKeyValues
18924 18925 18926 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18924 def entity_key_values @entity_key_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18931 18932 18933 18934 18935 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18931 def update!(**args) @distance = args[:distance] if args.key?(:distance) @entity_id = args[:entity_id] if args.key?(:entity_id) @entity_key_values = args[:entity_key_values] if args.key?(:entity_key_values) end |