Class: Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/content.rb

Overview

Candidate for the logprobs token and score.

Instance Attribute Summary collapse

Instance Attribute Details

#log_probability::Float

Returns The candidate's log probability.

Returns:

  • (::Float)

    The candidate's log probability.



472
473
474
475
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 472

class Candidate
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#token::String

Returns The candidate’s token string value.

Returns:

  • (::String)

    The candidate’s token string value.



472
473
474
475
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 472

class Candidate
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#token_id::Integer

Returns The candidate’s token id value.

Returns:

  • (::Integer)

    The candidate’s token id value.



472
473
474
475
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 472

class Candidate
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end