Class: Google::Apis::AiplatformV1::LearningGenaiRootScore

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootScore

Returns a new instance of LearningGenaiRootScore.



30981
30982
30983
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30981

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

Instance Attribute Details

#calculation_typeGoogle::Apis::AiplatformV1::LearningGenaiRootCalculationType

The type used for final weights calculation. Corresponds to the JSON property calculationType



30956
30957
30958
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30956

def calculation_type
  @calculation_type
end

#internal_metadataGoogle::Apis::AiplatformV1::LearningGenaiRootInternalMetadata

The internal_metadata is intended to be used by internal processors and will be cleared before returns. Corresponds to the JSON property internalMetadata



30962
30963
30964
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30962

def 
  @internal_metadata
end

#threshold_typeGoogle::Apis::AiplatformV1::LearningGenaiRootThresholdType

The type of score that bundled with a threshold, and will not be attending the final score calculation. How each score type uses the threshold can be implementation details. Corresponds to the JSON property thresholdType



30969
30970
30971
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30969

def threshold_type
  @threshold_type
end

#tokens_and_logprob_per_decoding_stepGoogle::Apis::AiplatformV1::LearningGenaiRootTokensAndLogProbPerDecodingStep

Results of RandomSamplingParams::top_k_logprob_per_decoding_step. Corresponds to the JSON property tokensAndLogprobPerDecodingStep



30974
30975
30976
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30974

def tokens_and_logprob_per_decoding_step
  @tokens_and_logprob_per_decoding_step
end

#valueFloat

Corresponds to the JSON property value

Returns:

  • (Float)


30979
30980
30981
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30979

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30986
30987
30988
30989
30990
30991
30992
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30986

def update!(**args)
  @calculation_type = args[:calculation_type] if args.key?(:calculation_type)
  @internal_metadata = args[:internal_metadata] if args.key?(:internal_metadata)
  @threshold_type = args[:threshold_type] if args.key?(:threshold_type)
  @tokens_and_logprob_per_decoding_step = args[:tokens_and_logprob_per_decoding_step] if args.key?(:tokens_and_logprob_per_decoding_step)
  @value = args[:value] if args.key?(:value)
end