Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ActiveLearningConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/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) ⇒ GoogleCloudAiplatformV1ActiveLearningConfig

Returns a new instance of GoogleCloudAiplatformV1ActiveLearningConfig.



580
581
582
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 580

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)


560
561
562
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 560

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)


565
566
567
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 565

def max_data_item_percentage
  @max_data_item_percentage
end

#sample_configGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1SampleConfig

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



571
572
573
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 571

def sample_config
  @sample_config
end

#training_configGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingConfig

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



578
579
580
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 578

def training_config
  @training_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



585
586
587
588
589
590
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 585

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