Class ActiveLearningConfig.Builder (3.44.0)

public static final class ActiveLearningConfig.Builder extends GeneratedMessageV3.Builder<ActiveLearningConfig.Builder> implements ActiveLearningConfigOrBuilder

Parameters that configure the active learning pipeline. Active learning will label the data incrementally by several iterations. For every iteration, it will select a batch of data based on the sampling strategy.

Protobuf type google.cloud.aiplatform.v1beta1.ActiveLearningConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ActiveLearningConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ActiveLearningConfig.Builder
Overrides

build()

public ActiveLearningConfig build()
Returns
Type Description
ActiveLearningConfig

buildPartial()

public ActiveLearningConfig buildPartial()
Returns
Type Description
ActiveLearningConfig

clear()

public ActiveLearningConfig.Builder clear()
Returns
Type Description
ActiveLearningConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ActiveLearningConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ActiveLearningConfig.Builder
Overrides

clearHumanLabelingBudget()

public ActiveLearningConfig.Builder clearHumanLabelingBudget()
Returns
Type Description
ActiveLearningConfig.Builder

clearMaxDataItemCount()

public ActiveLearningConfig.Builder clearMaxDataItemCount()

Max number of human labeled DataItems.

int64 max_data_item_count = 1;

Returns
Type Description
ActiveLearningConfig.Builder

This builder for chaining.

clearMaxDataItemPercentage()

public ActiveLearningConfig.Builder clearMaxDataItemPercentage()

Max percent of total DataItems for human labeling.

int32 max_data_item_percentage = 2;

Returns
Type Description
ActiveLearningConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ActiveLearningConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ActiveLearningConfig.Builder
Overrides

clearSampleConfig()

public ActiveLearningConfig.Builder clearSampleConfig()

Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.

.google.cloud.aiplatform.v1beta1.SampleConfig sample_config = 3;

Returns
Type Description
ActiveLearningConfig.Builder

clearTrainingConfig()

public ActiveLearningConfig.Builder clearTrainingConfig()

CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.

.google.cloud.aiplatform.v1beta1.TrainingConfig training_config = 4;

Returns
Type Description
ActiveLearningConfig.Builder

clone()

public ActiveLearningConfig.Builder clone()
Returns
Type Description
ActiveLearningConfig.Builder
Overrides

getDefaultInstanceForType()

public ActiveLearningConfig getDefaultInstanceForType()
Returns
Type Description
ActiveLearningConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHumanLabelingBudgetCase()

public ActiveLearningConfig.HumanLabelingBudgetCase getHumanLabelingBudgetCase()
Returns
Type Description
ActiveLearningConfig.HumanLabelingBudgetCase

getMaxDataItemCount()

public long getMaxDataItemCount()

Max number of human labeled DataItems.

int64 max_data_item_count = 1;

Returns
Type Description
long

The maxDataItemCount.

getMaxDataItemPercentage()

public int getMaxDataItemPercentage()

Max percent of total DataItems for human labeling.

int32 max_data_item_percentage = 2;

Returns
Type Description
int

The maxDataItemPercentage.

getSampleConfig()

public SampleConfig getSampleConfig()

Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.

.google.cloud.aiplatform.v1beta1.SampleConfig sample_config = 3;

Returns
Type Description
SampleConfig

The sampleConfig.

getSampleConfigBuilder()

public SampleConfig.Builder getSampleConfigBuilder()

Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.

.google.cloud.aiplatform.v1beta1.SampleConfig sample_config = 3;

Returns
Type Description
SampleConfig.Builder

getSampleConfigOrBuilder()

public SampleConfigOrBuilder getSampleConfigOrBuilder()

Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.

.google.cloud.aiplatform.v1beta1.SampleConfig sample_config = 3;

Returns
Type Description
SampleConfigOrBuilder

getTrainingConfig()

public TrainingConfig getTrainingConfig()

CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.

.google.cloud.aiplatform.v1beta1.TrainingConfig training_config = 4;

Returns
Type Description
TrainingConfig

The trainingConfig.

getTrainingConfigBuilder()

public TrainingConfig.Builder getTrainingConfigBuilder()

CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.

.google.cloud.aiplatform.v1beta1.TrainingConfig training_config = 4;

Returns
Type Description
TrainingConfig.Builder

getTrainingConfigOrBuilder()

public TrainingConfigOrBuilder getTrainingConfigOrBuilder()

CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.

.google.cloud.aiplatform.v1beta1.TrainingConfig training_config = 4;

Returns
Type Description
TrainingConfigOrBuilder

hasMaxDataItemCount()

public boolean hasMaxDataItemCount()

Max number of human labeled DataItems.

int64 max_data_item_count = 1;

Returns
Type Description
boolean

Whether the maxDataItemCount field is set.

hasMaxDataItemPercentage()

public boolean hasMaxDataItemPercentage()

Max percent of total DataItems for human labeling.

int32 max_data_item_percentage = 2;

Returns
Type Description
boolean

Whether the maxDataItemPercentage field is set.

hasSampleConfig()

public boolean hasSampleConfig()

Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.

.google.cloud.aiplatform.v1beta1.SampleConfig sample_config = 3;

Returns
Type Description
boolean

Whether the sampleConfig field is set.

hasTrainingConfig()

public boolean hasTrainingConfig()

CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.

.google.cloud.aiplatform.v1beta1.TrainingConfig training_config = 4;

Returns
Type Description
boolean

Whether the trainingConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ActiveLearningConfig other)

public ActiveLearningConfig.Builder mergeFrom(ActiveLearningConfig other)
Parameter
Name Description
other ActiveLearningConfig
Returns
Type Description
ActiveLearningConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ActiveLearningConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ActiveLearningConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ActiveLearningConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ActiveLearningConfig.Builder
Overrides

mergeSampleConfig(SampleConfig value)

public ActiveLearningConfig.Builder mergeSampleConfig(SampleConfig value)

Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.

.google.cloud.aiplatform.v1beta1.SampleConfig sample_config = 3;

Parameter
Name Description
value SampleConfig
Returns
Type Description
ActiveLearningConfig.Builder

mergeTrainingConfig(TrainingConfig value)

public ActiveLearningConfig.Builder mergeTrainingConfig(TrainingConfig value)

CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.

.google.cloud.aiplatform.v1beta1.TrainingConfig training_config = 4;

Parameter
Name Description
value TrainingConfig
Returns
Type Description
ActiveLearningConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ActiveLearningConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ActiveLearningConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ActiveLearningConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ActiveLearningConfig.Builder
Overrides

setMaxDataItemCount(long value)

public ActiveLearningConfig.Builder setMaxDataItemCount(long value)

Max number of human labeled DataItems.

int64 max_data_item_count = 1;

Parameter
Name Description
value long

The maxDataItemCount to set.

Returns
Type Description
ActiveLearningConfig.Builder

This builder for chaining.

setMaxDataItemPercentage(int value)

public ActiveLearningConfig.Builder setMaxDataItemPercentage(int value)

Max percent of total DataItems for human labeling.

int32 max_data_item_percentage = 2;

Parameter
Name Description
value int

The maxDataItemPercentage to set.

Returns
Type Description
ActiveLearningConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ActiveLearningConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ActiveLearningConfig.Builder
Overrides

setSampleConfig(SampleConfig value)

public ActiveLearningConfig.Builder setSampleConfig(SampleConfig value)

Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.

.google.cloud.aiplatform.v1beta1.SampleConfig sample_config = 3;

Parameter
Name Description
value SampleConfig
Returns
Type Description
ActiveLearningConfig.Builder

setSampleConfig(SampleConfig.Builder builderForValue)

public ActiveLearningConfig.Builder setSampleConfig(SampleConfig.Builder builderForValue)

Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.

.google.cloud.aiplatform.v1beta1.SampleConfig sample_config = 3;

Parameter
Name Description
builderForValue SampleConfig.Builder
Returns
Type Description
ActiveLearningConfig.Builder

setTrainingConfig(TrainingConfig value)

public ActiveLearningConfig.Builder setTrainingConfig(TrainingConfig value)

CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.

.google.cloud.aiplatform.v1beta1.TrainingConfig training_config = 4;

Parameter
Name Description
value TrainingConfig
Returns
Type Description
ActiveLearningConfig.Builder

setTrainingConfig(TrainingConfig.Builder builderForValue)

public ActiveLearningConfig.Builder setTrainingConfig(TrainingConfig.Builder builderForValue)

CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.

.google.cloud.aiplatform.v1beta1.TrainingConfig training_config = 4;

Parameter
Name Description
builderForValue TrainingConfig.Builder
Returns
Type Description
ActiveLearningConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ActiveLearningConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ActiveLearningConfig.Builder
Overrides