Google Cloud Ai Platform V1 Client - Class QuestionAnsweringCorrectnessInput (1.3.0)

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

Input for question answering correctness metric.

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

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric_spec Google\Cloud\AIPlatform\V1\QuestionAnsweringCorrectnessSpec

Required. Spec for question answering correctness score metric.

↳ instance Google\Cloud\AIPlatform\V1\QuestionAnsweringCorrectnessInstance

Required. Question answering correctness instance.

getMetricSpec

Required. Spec for question answering correctness score metric.

Returns
Type Description
Google\Cloud\AIPlatform\V1\QuestionAnsweringCorrectnessSpec|null

hasMetricSpec

clearMetricSpec

setMetricSpec

Required. Spec for question answering correctness score metric.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\QuestionAnsweringCorrectnessSpec
Returns
Type Description
$this

getInstance

Required. Question answering correctness instance.

Returns
Type Description
Google\Cloud\AIPlatform\V1\QuestionAnsweringCorrectnessInstance|null

hasInstance

clearInstance

setInstance

Required. Question answering correctness instance.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\QuestionAnsweringCorrectnessInstance
Returns
Type Description
$this