public final class SampleConfig extends GeneratedMessageV3 implements SampleConfigOrBuilder
Active learning data sampling config. For every active learning labeling
iteration, it will select a batch of data based on the sampling strategy.
Protobuf type google.cloud.aiplatform.v1.SampleConfig
Static Fields
public static final int FOLLOWING_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER
Field Value
public static final int INITIAL_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER
Field Value
public static final int SAMPLE_STRATEGY_FIELD_NUMBER
Field Value
Static Methods
public static SampleConfig getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static SampleConfig.Builder newBuilder()
Returns
public static SampleConfig.Builder newBuilder(SampleConfig prototype)
Parameter
Returns
public static SampleConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SampleConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SampleConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static SampleConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SampleConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static SampleConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SampleConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SampleConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SampleConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SampleConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SampleConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static SampleConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<SampleConfig> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public SampleConfig getDefaultInstanceForType()
Returns
public int getFollowingBatchSamplePercentage()
The percentage of data needed to be labeled in each following batch
(except the first batch).
int32 following_batch_sample_percentage = 3;
Returns
Type | Description |
int | The followingBatchSamplePercentage.
|
public SampleConfig.FollowingBatchSampleSizeCase getFollowingBatchSampleSizeCase()
Returns
public int getInitialBatchSamplePercentage()
The percentage of data needed to be labeled in the first batch.
int32 initial_batch_sample_percentage = 1;
Returns
Type | Description |
int | The initialBatchSamplePercentage.
|
public SampleConfig.InitialBatchSampleSizeCase getInitialBatchSampleSizeCase()
Returns
public Parser<SampleConfig> getParserForType()
Returns
Overrides
public SampleConfig.SampleStrategy getSampleStrategy()
Field to choose sampling strategy. Sampling strategy will decide which data
should be selected for human labeling in every batch.
.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy sample_strategy = 5;
Returns
public int getSampleStrategyValue()
Field to choose sampling strategy. Sampling strategy will decide which data
should be selected for human labeling in every batch.
.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy sample_strategy = 5;
Returns
Type | Description |
int | The enum numeric value on the wire for sampleStrategy.
|
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasFollowingBatchSamplePercentage()
The percentage of data needed to be labeled in each following batch
(except the first batch).
int32 following_batch_sample_percentage = 3;
Returns
Type | Description |
boolean | Whether the followingBatchSamplePercentage field is set.
|
public boolean hasInitialBatchSamplePercentage()
The percentage of data needed to be labeled in the first batch.
int32 initial_batch_sample_percentage = 1;
Returns
Type | Description |
boolean | Whether the initialBatchSamplePercentage field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public SampleConfig.Builder newBuilderForType()
Returns
protected SampleConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public SampleConfig.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions