Google Cloud Ai Platform V1 Client - Class NearestNeighbors (0.38.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<Google\Cloud\AIPlatform\V1\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<Google\Cloud\AIPlatform\V1\NearestNeighbors\Neighbor>
Returns
Type Description
$this