Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate

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

A candidate at a decoding step.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate

Returns a new instance of LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate.



33513
33514
33515
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33513

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

Instance Attribute Details

#log_probabilityFloat

The candidate's log probability. Corresponds to the JSON property logProbability

Returns:

  • (Float)


33506
33507
33508
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33506

def log_probability
  @log_probability
end

#tokenString

The candidate’s token value. Corresponds to the JSON property token

Returns:

  • (String)


33511
33512
33513
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33511

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33518
33519
33520
33521
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33518

def update!(**args)
  @log_probability = args[:log_probability] if args.key?(:log_probability)
  @token = args[:token] if args.key?(:token)
end