Class: Google::Apis::AiplatformV1::LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate
- 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
A candidate at a decoding step.
Instance Attribute Summary collapse
-
#log_probability ⇒ Float
The candidate's log probability.
-
#token ⇒ String
The candidate’s token value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate
constructor
A new instance of LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate
Returns a new instance of LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate.
31322 31323 31324 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31322 def initialize(**args) update!(**args) end |
Instance Attribute Details
#log_probability ⇒ Float
The candidate's log probability.
Corresponds to the JSON property logProbability
31315 31316 31317 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31315 def log_probability @log_probability end |
#token ⇒ String
The candidate’s token value.
Corresponds to the JSON property token
31320 31321 31322 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31320 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
31327 31328 31329 31330 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31327 def update!(**args) @log_probability = args[:log_probability] if args.key?(:log_probability) @token = args[:token] if args.key?(:token) end |