Google Cloud Ai Platform V1 Client - Class NearestNeighbors (1.13.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class NearestNeighbors.

Nearest neighbors for one query.

Generated from protobuf message google.cloud.aiplatform.v1.NearestNeighbors

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ neighbors array<NearestNeighbors\Neighbor>

All its neighbors.

getNeighbors

All its neighbors.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNeighbors

All its neighbors.

Parameter
Name Description
var array<NearestNeighbors\Neighbor>
Returns
Type Description
$this