Class SampleConfig (1.33.1)

SampleConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
initial_batch_sample_percentage int
The percentage of data needed to be labeled in the first batch. This field is a member of oneof_ initial_batch_sample_size.
following_batch_sample_percentage int
The percentage of data needed to be labeled in each following batch (except the first batch). This field is a member of oneof_ following_batch_sample_size.
sample_strategy google.cloud.aiplatform_v1.types.SampleConfig.SampleStrategy
Field to choose sampling strategy. Sampling strategy will decide which data should be selected for human labeling in every batch.

Classes

SampleStrategy

SampleStrategy(value)

Sample strategy decides which subset of DataItems should be selected for human labeling in every batch.

Values: SAMPLE_STRATEGY_UNSPECIFIED (0): Default will be treated as UNCERTAINTY. UNCERTAINTY (1): Sample the most uncertain data to label.