Google Cloud Ai Platform V1 Client - Class LogprobsResult (1.33.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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月08日 UTC.