Google Cloud Ai Platform V1 Client - Class PairwiseQuestionAnsweringQualityResult (1.7.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class PairwiseQuestionAnsweringQualityResult.

Spec for pairwise question answering quality result.

Generated from protobuf message google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ pairwise_choice int

Output only. Pairwise question answering prediction choice.

↳ explanation string

Output only. Explanation for question answering quality score.

↳ confidence float

Output only. Confidence for question answering quality score.

getPairwiseChoice

Output only. Pairwise question answering prediction choice.

Returns
Type Description
int

setPairwiseChoice

Output only. Pairwise question answering prediction choice.

Parameter
Name Description
var int
Returns
Type Description
$this

getExplanation

Output only. Explanation for question answering quality score.

Returns
Type Description
string

setExplanation

Output only. Explanation for question answering quality score.

Parameter
Name Description
var string
Returns
Type Description
$this

getConfidence

Output only. Confidence for question answering quality score.

Returns
Type Description
float

hasConfidence

clearConfidence

setConfidence

Output only. Confidence for question answering quality score.

Parameter
Name Description
var float
Returns
Type Description
$this