Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ActiveLearningConfig

Inherits:
Object
  • Object
show all
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

Parameters that configure the active learning pipeline. Active learning will label the data incrementally by several iterations. For every iteration, it will select a batch of data based on the sampling strategy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ActiveLearningConfig

Returns a new instance of GoogleCloudAiplatformV1beta1ActiveLearningConfig.



516
517
518
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 516

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#max_data_item_countFixnum

Max number of human labeled DataItems. Corresponds to the JSON property maxDataItemCount

Returns:

  • (Fixnum)


496
497
498
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 496

def max_data_item_count
  @max_data_item_count
end

#max_data_item_percentageFixnum

Max percent of total DataItems for human labeling. Corresponds to the JSON property maxDataItemPercentage

Returns:

  • (Fixnum)


501
502
503
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 501

def max_data_item_percentage
  @max_data_item_percentage
end

#sample_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SampleConfig

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



507
508
509
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 507

def sample_config
  @sample_config
end

#training_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingConfig

CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems. Corresponds to the JSON property trainingConfig



514
515
516
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 514

def training_config
  @training_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



521
522
523
524
525
526
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 521

def update!(**args)
  @max_data_item_count = args[:max_data_item_count] if args.key?(:max_data_item_count)
  @max_data_item_percentage = args[:max_data_item_percentage] if args.key?(:max_data_item_percentage)
  @sample_config = args[:sample_config] if args.key?(:sample_config)
  @training_config = args[:training_config] if args.key?(:training_config)
end