Class: Google::Cloud::AIPlatform::V1::NearestNeighbors
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::NearestNeighbors
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb
Overview
Nearest neighbors for one query.
Defined Under Namespace
Classes: Neighbor
Instance Attribute Summary collapse
-
#neighbors ⇒ ::Array<::Google::Cloud::AIPlatform::V1::NearestNeighbors::Neighbor>
All its neighbors.
Instance Attribute Details
#neighbors ⇒ ::Array<::Google::Cloud::AIPlatform::V1::NearestNeighbors::Neighbor>
Returns All its neighbors.
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 |
# File 'proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb', line 285 class NearestNeighbors include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A neighbor of the query vector. # @!attribute [rw] entity_id # @return [::String] # The id of the similar entity. # @!attribute [rw] distance # @return [::Float] # The distance between the neighbor and the query vector. # @!attribute [rw] entity_key_values # @return [::Google::Cloud::AIPlatform::V1::FetchFeatureValuesResponse] # The attributes of the neighbor, e.g. filters, crowding and metadata # Note that full entities are returned only when "return_full_entity" # is set to true. Otherwise, only the "entity_id" and "distance" fields # are populated. class Neighbor include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |