Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LogprobsResultCandidate
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LogprobsResultCandidate
- 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
Candidate for the logprobs token and score.
Instance Attribute Summary collapse
-
#log_probability ⇒ Float
The candidate's log probability.
-
#token ⇒ String
The candidate's token string value.
-
#token_id ⇒ Fixnum
The candidate's token id value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1LogprobsResultCandidate
constructor
A new instance of GoogleCloudAiplatformV1beta1LogprobsResultCandidate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1LogprobsResultCandidate
Returns a new instance of GoogleCloudAiplatformV1beta1LogprobsResultCandidate.
16619 16620 16621 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16619 def initialize(**args) update!(**args) end |
Instance Attribute Details
#log_probability ⇒ Float
The candidate's log probability.
Corresponds to the JSON property logProbability
16607 16608 16609 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16607 def log_probability @log_probability end |
#token ⇒ String
The candidate's token string value.
Corresponds to the JSON property token
16612 16613 16614 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16612 def token @token end |
#token_id ⇒ Fixnum
The candidate's token id value.
Corresponds to the JSON property tokenId
16617 16618 16619 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16617 def token_id @token_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16624 16625 16626 16627 16628 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16624 def update!(**args) @log_probability = args[:log_probability] if args.key?(:log_probability) @token = args[:token] if args.key?(:token) @token_id = args[:token_id] if args.key?(:token_id) end |