Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class LogprobsResult.
Logprobs Result
Generated from protobuf message google.cloud.aiplatform.v1.LogprobsResult
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ top_candidates |
array<Google\Cloud\AIPlatform\V1\LogprobsResult\TopCandidates>
Length = total number of decoding steps. |
↳ chosen_candidates |
array<Google\Cloud\AIPlatform\V1\LogprobsResult\Candidate>
Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. |
getTopCandidates
Length = total number of decoding steps.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setTopCandidates
Length = total number of decoding steps.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\AIPlatform\V1\LogprobsResult\TopCandidates>
|
Returns | |
---|---|
Type | Description |
$this |
getChosenCandidates
Length = total number of decoding steps.
The chosen candidates may or may not be in top_candidates.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setChosenCandidates
Length = total number of decoding steps.
The chosen candidates may or may not be in top_candidates.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\AIPlatform\V1\LogprobsResult\Candidate>
|
Returns | |
---|---|
Type | Description |
$this |