Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class UserDefinedClassifierSpec.
The specification for user defined classifier.
Generated from protobuf message google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerGenerationSpecMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ enable_user_defined_classifier |
bool
Optional. Whether or not to enable and include user defined classifier. |
↳ preamble |
string
Optional. The preamble to be used for the user defined classifier. |
↳ model_id |
string
Optional. The model id to be used for the user defined classifier. |
↳ task_marker |
string
Optional. The task marker to be used for the user defined classifier. |
↳ top_p |
float
Optional. The top-p value to be used for the user defined classifier. |
↳ top_k |
int|string
Optional. The top-k value to be used for the user defined classifier. |
↳ temperature |
float
Optional. The temperature value to be used for the user defined classifier. |
↳ seed |
int
Optional. The seed value to be used for the user defined classifier. |
getEnableUserDefinedClassifier
Optional. Whether or not to enable and include user defined classifier.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setEnableUserDefinedClassifier
Optional. Whether or not to enable and include user defined classifier.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPreamble
Optional. The preamble to be used for the user defined classifier.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPreamble
Optional. The preamble to be used for the user defined classifier.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getModelId
Optional. The model id to be used for the user defined classifier.
| Returns | |
|---|---|
| Type | Description |
string |
|
setModelId
Optional. The model id to be used for the user defined classifier.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTaskMarker
Optional. The task marker to be used for the user defined classifier.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTaskMarker
Optional. The task marker to be used for the user defined classifier.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTopP
Optional. The top-p value to be used for the user defined classifier.
| Returns | |
|---|---|
| Type | Description |
float |
|
setTopP
Optional. The top-p value to be used for the user defined classifier.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTopK
Optional. The top-k value to be used for the user defined classifier.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setTopK
Optional. The top-k value to be used for the user defined classifier.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTemperature
Optional. The temperature value to be used for the user defined classifier.
| Returns | |
|---|---|
| Type | Description |
float |
|
setTemperature
Optional. The temperature value to be used for the user defined classifier.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSeed
Optional. The seed value to be used for the user defined classifier.
| Returns | |
|---|---|
| Type | Description |
int |
|
setSeed
Optional. The seed value to be used for the user defined classifier.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|