Class ActiveLearningConfig.Builder (3.5.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.v1.ActiveLearningConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ActiveLearningConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ActiveLearningConfig.Builder
Overrides

build()

public ActiveLearningConfig build()
Returns
TypeDescription
ActiveLearningConfig

buildPartial()

public ActiveLearningConfig buildPartial()
Returns
TypeDescription
ActiveLearningConfig

clear()

public ActiveLearningConfig.Builder clear()
Returns
TypeDescription
ActiveLearningConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ActiveLearningConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ActiveLearningConfig.Builder
Overrides

clearHumanLabelingBudget()

public ActiveLearningConfig.Builder clearHumanLabelingBudget()
Returns
TypeDescription
ActiveLearningConfig.Builder

clearMaxDataItemCount()

public ActiveLearningConfig.Builder clearMaxDataItemCount()

Max number of human labeled DataItems.

int64 max_data_item_count = 1;

Returns
TypeDescription
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
TypeDescription
ActiveLearningConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ActiveLearningConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v1.SampleConfig sample_config = 3;

Returns
TypeDescription
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.v1.TrainingConfig training_config = 4;

Returns
TypeDescription
ActiveLearningConfig.Builder

clone()

public ActiveLearningConfig.Builder clone()
Returns
TypeDescription
ActiveLearningConfig.Builder
Overrides

getDefaultInstanceForType()

public ActiveLearningConfig getDefaultInstanceForType()
Returns
TypeDescription
ActiveLearningConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHumanLabelingBudgetCase()

public ActiveLearningConfig.HumanLabelingBudgetCase getHumanLabelingBudgetCase()
Returns
TypeDescription
ActiveLearningConfig.HumanLabelingBudgetCase

getMaxDataItemCount()

public long getMaxDataItemCount()

Max number of human labeled DataItems.

int64 max_data_item_count = 1;

Returns
TypeDescription
long

The maxDataItemCount.

getMaxDataItemPercentage()

public int getMaxDataItemPercentage()

Max percent of total DataItems for human labeling.

int32 max_data_item_percentage = 2;

Returns
TypeDescription
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.v1.SampleConfig sample_config = 3;

Returns
TypeDescription
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.v1.SampleConfig sample_config = 3;

Returns
TypeDescription
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.v1.SampleConfig sample_config = 3;

Returns
TypeDescription
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.v1.TrainingConfig training_config = 4;

Returns
TypeDescription
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.v1.TrainingConfig training_config = 4;

Returns
TypeDescription
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.v1.TrainingConfig training_config = 4;

Returns
TypeDescription
TrainingConfigOrBuilder

hasMaxDataItemCount()

public boolean hasMaxDataItemCount()

Max number of human labeled DataItems.

int64 max_data_item_count = 1;

Returns
TypeDescription
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
TypeDescription
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.v1.SampleConfig sample_config = 3;

Returns
TypeDescription
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.v1.TrainingConfig training_config = 4;

Returns
TypeDescription
boolean

Whether the trainingConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ActiveLearningConfig other)

public ActiveLearningConfig.Builder mergeFrom(ActiveLearningConfig other)
Parameter
NameDescription
otherActiveLearningConfig
Returns
TypeDescription
ActiveLearningConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ActiveLearningConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ActiveLearningConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ActiveLearningConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1.SampleConfig sample_config = 3;

Parameter
NameDescription
valueSampleConfig
Returns
TypeDescription
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.v1.TrainingConfig training_config = 4;

Parameter
NameDescription
valueTrainingConfig
Returns
TypeDescription
ActiveLearningConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ActiveLearningConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ActiveLearningConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ActiveLearningConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The maxDataItemCount to set.

Returns
TypeDescription
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
NameDescription
valueint

The maxDataItemPercentage to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1.SampleConfig sample_config = 3;

Parameter
NameDescription
valueSampleConfig
Returns
TypeDescription
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.v1.SampleConfig sample_config = 3;

Parameter
NameDescription
builderForValueSampleConfig.Builder
Returns
TypeDescription
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.v1.TrainingConfig training_config = 4;

Parameter
NameDescription
valueTrainingConfig
Returns
TypeDescription
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.v1.TrainingConfig training_config = 4;

Parameter
NameDescription
builderForValueTrainingConfig.Builder
Returns
TypeDescription
ActiveLearningConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ActiveLearningConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ActiveLearningConfig.Builder
Overrides