Class: Google::Apis::AiplatformV1::LearningGenaiRootScoredToken
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::LearningGenaiRootScoredToken
- 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 token with its own score.
Instance Attribute Summary collapse
-
#end_token_score ⇒ Float
Each end_token_score is a logprob for how well the completion would end at a particular token.
-
#score ⇒ Float
Each score is the logprob for the token in model response.
-
#token ⇒ String
Corresponds to the JSON property
token.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootScoredToken
constructor
A new instance of LearningGenaiRootScoredToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootScoredToken
Returns a new instance of LearningGenaiRootScoredToken.
31833 31834 31835 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31833 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_token_score ⇒ Float
Each end_token_score is a logprob for how well the completion would end at a
particular token. See http://google3/labs/language/aida/config/proto/
model_config.proto;l=376;rcl=573039459
Corresponds to the JSON property endTokenScore
31821 31822 31823 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31821 def end_token_score @end_token_score end |
#score ⇒ Float
Each score is the logprob for the token in model response.
Corresponds to the JSON property score
31826 31827 31828 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31826 def score @score end |
#token ⇒ String
Corresponds to the JSON property token
31831 31832 31833 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31831 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
31838 31839 31840 31841 31842 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31838 def update!(**args) @end_token_score = args[:end_token_score] if args.key?(:end_token_score) @score = args[:score] if args.key?(:score) @token = args[:token] if args.key?(:token) end |