original_docstring: Return probabilities using the log-likelihoods.
docstring: Return probabilities using the log-likelihoods.
docstring_tokens: Return probabilities using the log - likelihoods .
code: def predict_proba_one(self, x):
          """Return probabilities using the log-likelihoods."""
          jll = self.joint_log_likelihood(x)
          if not jll:
              return {}
          lse = special.logsumexp(list(jll.values()))
          return {label: math.exp(ll - lse) for label, ll in jll.items()}
code_tokens: def predict_proba_one ( self , x ) : jll = self . joint_log_likelihood ( x ) if not jll : return { } lse = special . logsumexp ( list ( jll . values ( ) ) ) return { label : math . exp ( ll - lse ) for label , ll in jll . items ( ) }
short_docstring: Return probabilities using the log-likelihoods.
short_docstring_tokens: Return probabilities using the log - likelihoods .
comment: """Return probabilities using the log-likelihoods."""