Class SampleConfig (1.12.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.

Inheritance

builtins.object > proto.message.Message > SampleConfig

Classes

SampleStrategy

SampleStrategy(value)

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