Package com.google.cloud.aiplatform.v1
Class ActiveLearningConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ActiveLearningConfig.Builder>
com.google.cloud.aiplatform.v1.ActiveLearningConfig.Builder
- All Implemented Interfaces:
ActiveLearningConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ActiveLearningConfig
public static final class ActiveLearningConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Max number of human labeled DataItems.Max percent of total DataItems for human labeling.Active learning data sampling config.CMLE training config.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongMax number of human labeled DataItems.intMax percent of total DataItems for human labeling.Active learning data sampling config.Active learning data sampling config.Active learning data sampling config.CMLE training config.CMLE training config.CMLE training config.booleanMax number of human labeled DataItems.booleanMax percent of total DataItems for human labeling.booleanActive learning data sampling config.booleanCMLE training config.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ActiveLearningConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSampleConfig(SampleConfig value) Active learning data sampling config.CMLE training config.setMaxDataItemCount(long value) Max number of human labeled DataItems.setMaxDataItemPercentage(int value) Max percent of total DataItems for human labeling.setSampleConfig(SampleConfig value) Active learning data sampling config.setSampleConfig(SampleConfig.Builder builderForValue) Active learning data sampling config.setTrainingConfig(TrainingConfig value) CMLE training config.setTrainingConfig(TrainingConfig.Builder builderForValue) CMLE training config.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ActiveLearningConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ActiveLearningConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ActiveLearningConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ActiveLearningConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ActiveLearningConfig.Builder>
-
mergeFrom
public ActiveLearningConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ActiveLearningConfig.Builder>- Throws:
IOException
-
getHumanLabelingBudgetCase
- Specified by:
getHumanLabelingBudgetCasein interfaceActiveLearningConfigOrBuilder
-
clearHumanLabelingBudget
-
hasMaxDataItemCount
public boolean hasMaxDataItemCount()Max number of human labeled DataItems.
int64 max_data_item_count = 1;- Specified by:
hasMaxDataItemCountin interfaceActiveLearningConfigOrBuilder- Returns:
- Whether the maxDataItemCount field is set.
-
getMaxDataItemCount
public long getMaxDataItemCount()Max number of human labeled DataItems.
int64 max_data_item_count = 1;- Specified by:
getMaxDataItemCountin interfaceActiveLearningConfigOrBuilder- Returns:
- The maxDataItemCount.
-
setMaxDataItemCount
Max number of human labeled DataItems.
int64 max_data_item_count = 1;- Parameters:
value- The maxDataItemCount to set.- Returns:
- This builder for chaining.
-
clearMaxDataItemCount
Max number of human labeled DataItems.
int64 max_data_item_count = 1;- Returns:
- This builder for chaining.
-
hasMaxDataItemPercentage
public boolean hasMaxDataItemPercentage()Max percent of total DataItems for human labeling.
int32 max_data_item_percentage = 2;- Specified by:
hasMaxDataItemPercentagein interfaceActiveLearningConfigOrBuilder- Returns:
- Whether the maxDataItemPercentage field is set.
-
getMaxDataItemPercentage
public int getMaxDataItemPercentage()Max percent of total DataItems for human labeling.
int32 max_data_item_percentage = 2;- Specified by:
getMaxDataItemPercentagein interfaceActiveLearningConfigOrBuilder- Returns:
- The maxDataItemPercentage.
-
setMaxDataItemPercentage
Max percent of total DataItems for human labeling.
int32 max_data_item_percentage = 2;- Parameters:
value- The maxDataItemPercentage to set.- Returns:
- This builder for chaining.
-
clearMaxDataItemPercentage
Max percent of total DataItems for human labeling.
int32 max_data_item_percentage = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasSampleConfigin interfaceActiveLearningConfigOrBuilder- Returns:
- Whether the sampleConfig field is set.
-
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;- Specified by:
getSampleConfigin interfaceActiveLearningConfigOrBuilder- Returns:
- The sampleConfig.
-
setSampleConfig
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; -
setSampleConfig
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; -
mergeSampleConfig
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; -
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; -
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; -
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;- Specified by:
getSampleConfigOrBuilderin interfaceActiveLearningConfigOrBuilder
-
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;- Specified by:
hasTrainingConfigin interfaceActiveLearningConfigOrBuilder- Returns:
- Whether the trainingConfig field is set.
-
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;- Specified by:
getTrainingConfigin interfaceActiveLearningConfigOrBuilder- Returns:
- The trainingConfig.
-
setTrainingConfig
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; -
setTrainingConfig
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; -
mergeTrainingConfig
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; -
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; -
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; -
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;- Specified by:
getTrainingConfigOrBuilderin interfaceActiveLearningConfigOrBuilder
-