Class SampleConfig (0.4.0)

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.

Attributes

Name Description
initial_batch_sample_percentage int
The percentage of data needed to be labeled in the first batch.
following_batch_sample_percentage int
The percentage of data needed to be labeled in each following batch (except the first batch).
sample_strategy `.data_labeling_job.SampleConfig.SampleStrategy`
Field to chose 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.