Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1LogprobsResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb

Overview

Logprobs Result

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1LogprobsResult

Returns a new instance of GoogleCloudAiplatformV1beta1LogprobsResult.



1157
1158
1159
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1157

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

Instance Attribute Details

#chosen_candidatesArray<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1LogprobsResultCandidate>

Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. Corresponds to the JSON property chosenCandidates



1150
1151
1152
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1150

def chosen_candidates
  @chosen_candidates
end

#top_candidatesArray<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates>

Length = total number of decoding steps. Corresponds to the JSON property topCandidates



1155
1156
1157
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1155

def top_candidates
  @top_candidates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1162
1163
1164
1165
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1162

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