Google Cloud Document Ai V1 Client - Class FoundationModelTuningOptions (2.0.0-RC1)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class FoundationModelTuningOptions.

Options to control foundation model tuning of the processor.

Generated from protobuf message google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions

Namespace

Google \ Cloud \ DocumentAI \ V1 \ TrainProcessorVersionRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ train_steps int

Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used.

↳ learning_rate_multiplier float

Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used.

getTrainSteps

Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used.

Returns
Type Description
int

setTrainSteps

Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used.

Parameter
Name Description
var int
Returns
Type Description
$this

getLearningRateMultiplier

Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used.

Returns
Type Description
float

setLearningRateMultiplier

Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used.

Parameter
Name Description
var float
Returns
Type Description
$this