Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class TopCandidates.
Candidates with top log probabilities at each decoding step.
Generated from protobuf message google.cloud.aiplatform.v1.LogprobsResult.TopCandidates
Namespace
Google \ Cloud \ AIPlatform \ V1 \ LogprobsResultMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ candidates |
array<Google\Cloud\AIPlatform\V1\LogprobsResult\Candidate>
Sorted by log probability in descending order. |
getCandidates
Sorted by log probability in descending order.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setCandidates
Sorted by log probability in descending order.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\AIPlatform\V1\LogprobsResult\Candidate>
|
Returns | |
---|---|
Type | Description |
$this |