Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class QuestionAnsweringHelpfulnessResult.
Spec for question answering helpfulness result.
Generated from protobuf message google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ score |
float
Output only. Question Answering Helpfulness score. |
↳ explanation |
string
Output only. Explanation for question answering helpfulness score. |
↳ confidence |
float
Output only. Confidence for question answering helpfulness score. |
getScore
Output only. Question Answering Helpfulness score.
Returns | |
---|---|
Type | Description |
float |
hasScore
clearScore
setScore
Output only. Question Answering Helpfulness score.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getExplanation
Output only. Explanation for question answering helpfulness score.
Returns | |
---|---|
Type | Description |
string |
setExplanation
Output only. Explanation for question answering helpfulness score.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getConfidence
Output only. Confidence for question answering helpfulness score.
Returns | |
---|---|
Type | Description |
float |
hasConfidence
clearConfidence
setConfidence
Output only. Confidence for question answering helpfulness score.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |