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

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

Input for question answering quality metric.

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

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

Required. Spec for question answering quality score metric.

↳ instance Google\Cloud\AIPlatform\V1\QuestionAnsweringQualityInstance

Required. Question answering quality instance.

getMetricSpec

Required. Spec for question answering quality score metric.

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

hasMetricSpec

clearMetricSpec

setMetricSpec

Required. Spec for question answering quality score metric.

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

getInstance

Required. Question answering quality instance.

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

hasInstance

clearInstance

setInstance

Required. Question answering quality instance.

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