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.FindNeighborsResponse.NearestNeighbors
Namespace
Google \ Cloud \ AIPlatform \ V1 \ FindNeighborsResponseMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ id |
string
The ID of the query datapoint. |
↳ neighbors |
array<Neighbor>
All its neighbors. |
getId
The ID of the query datapoint.
| Returns | |
|---|---|
| Type | Description |
string |
|
setId
The ID of the query datapoint.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNeighbors
All its neighbors.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Neighbor> |
|
setNeighbors
All its neighbors.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Neighbor>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|