Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PreferenceOptimizationDataStats

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

Statistics computed for datasets used for preference optimization.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1PreferenceOptimizationDataStats

Returns a new instance of GoogleCloudAiplatformV1beta1PreferenceOptimizationDataStats.



34548
34549
34550
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34548

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

Instance Attribute Details

#dropped_example_indicesArray<Fixnum>

Output only. A partial sample of the indices (starting from 1) of the dropped examples. Corresponds to the JSON property droppedExampleIndices

Returns:

  • (Array<Fixnum>)


34500
34501
34502
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34500

def dropped_example_indices
  @dropped_example_indices
end

#dropped_example_reasonsArray<String>

Output only. For each index in dropped_example_indices, the user-facing reason why the example was dropped. Corresponds to the JSON property droppedExampleReasons

Returns:

  • (Array<String>)


34506
34507
34508
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34506

def dropped_example_reasons
  @dropped_example_reasons
end

#score_variance_per_example_distributionGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetDistribution

Distribution computed over a tuning dataset. Corresponds to the JSON property scoreVariancePerExampleDistribution



34511
34512
34513
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34511

def score_variance_per_example_distribution
  @score_variance_per_example_distribution
end

#scores_distributionGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetDistribution

Distribution computed over a tuning dataset. Corresponds to the JSON property scoresDistribution



34516
34517
34518
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34516

def scores_distribution
  @scores_distribution
end

#total_billable_token_countFixnum

Output only. Number of billable tokens in the tuning dataset. Corresponds to the JSON property totalBillableTokenCount

Returns:

  • (Fixnum)


34521
34522
34523
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34521

def total_billable_token_count
  @total_billable_token_count
end

#tuning_dataset_example_countFixnum

Output only. Number of examples in the tuning dataset. Corresponds to the JSON property tuningDatasetExampleCount

Returns:

  • (Fixnum)


34526
34527
34528
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34526

def tuning_dataset_example_count
  @tuning_dataset_example_count
end

#tuning_step_countFixnum

Output only. Number of tuning steps for this Tuning Job. Corresponds to the JSON property tuningStepCount

Returns:

  • (Fixnum)


34531
34532
34533
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34531

def tuning_step_count
  @tuning_step_count
end

#user_dataset_examplesArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiPreferenceExample>

Output only. Sample user examples in the training dataset. Corresponds to the JSON property userDatasetExamples



34536
34537
34538
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34536

def user_dataset_examples
  @user_dataset_examples
end

#user_input_token_distributionGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetDistribution

Distribution computed over a tuning dataset. Corresponds to the JSON property userInputTokenDistribution



34541
34542
34543
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34541

def user_input_token_distribution
  @user_input_token_distribution
end

#user_output_token_distributionGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetDistribution

Distribution computed over a tuning dataset. Corresponds to the JSON property userOutputTokenDistribution



34546
34547
34548
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34546

def user_output_token_distribution
  @user_output_token_distribution
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34553

def update!(**args)
  @dropped_example_indices = args[:dropped_example_indices] if args.key?(:dropped_example_indices)
  @dropped_example_reasons = args[:dropped_example_reasons] if args.key?(:dropped_example_reasons)
  @score_variance_per_example_distribution = args[:score_variance_per_example_distribution] if args.key?(:score_variance_per_example_distribution)
  @scores_distribution = args[:scores_distribution] if args.key?(:scores_distribution)
  @total_billable_token_count = args[:total_billable_token_count] if args.key?(:total_billable_token_count)
  @tuning_dataset_example_count = args[:tuning_dataset_example_count] if args.key?(:tuning_dataset_example_count)
  @tuning_step_count = args[:tuning_step_count] if args.key?(:tuning_step_count)
  @user_dataset_examples = args[:user_dataset_examples] if args.key?(:user_dataset_examples)
  @user_input_token_distribution = args[:user_input_token_distribution] if args.key?(:user_input_token_distribution)
  @user_output_token_distribution = args[:user_output_token_distribution] if args.key?(:user_output_token_distribution)
end