Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SampleConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SampleConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.
Instance Attribute Summary collapse
-
#following_batch_sample_percentage ⇒ Fixnum
The percentage of data needed to be labeled in each following batch (except the first batch).
-
#initial_batch_sample_percentage ⇒ Fixnum
The percentage of data needed to be labeled in the first batch.
-
#sample_strategy ⇒ String
Field to choose sampling strategy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SampleConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1SampleConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SampleConfig
Returns a new instance of GoogleCloudAiplatformV1beta1SampleConfig.
24458 24459 24460 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24458 def initialize(**args) update!(**args) end |
Instance Attribute Details
#following_batch_sample_percentage ⇒ Fixnum
The percentage of data needed to be labeled in each following batch (except
the first batch).
Corresponds to the JSON property followingBatchSamplePercentage
24445 24446 24447 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24445 def following_batch_sample_percentage @following_batch_sample_percentage end |
#initial_batch_sample_percentage ⇒ Fixnum
The percentage of data needed to be labeled in the first batch.
Corresponds to the JSON property initialBatchSamplePercentage
24450 24451 24452 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24450 def initial_batch_sample_percentage @initial_batch_sample_percentage end |
#sample_strategy ⇒ String
Field to choose sampling strategy. Sampling strategy will decide which data
should be selected for human labeling in every batch.
Corresponds to the JSON property sampleStrategy
24456 24457 24458 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24456 def sample_strategy @sample_strategy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
24463 24464 24465 24466 24467 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24463 def update!(**args) @following_batch_sample_percentage = args[:following_batch_sample_percentage] if args.key?(:following_batch_sample_percentage) @initial_batch_sample_percentage = args[:initial_batch_sample_percentage] if args.key?(:initial_batch_sample_percentage) @sample_strategy = args[:sample_strategy] if args.key?(:sample_strategy) end |