Google Cloud Ai Platform V1 Client - Class LogprobsResult (1.12.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ top_candidates array<LogprobsResult\TopCandidates>

Length = total number of decoding steps.

↳ chosen_candidates array<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<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<LogprobsResult\Candidate>
Returns
Type Description
$this