Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 3, 2022
1 parent 092ceae commit ae44bc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tweetopic/_prob.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ def _cond_prob(
# I use logs instead of computing the products directly,
# as it would quickly result in numerical overflow.
log_norm_term = log(
(cluster_doc_count[i_cluster] + alpha)
/ (n_docs - 1 + n_clusters * alpha),
(cluster_doc_count[i_cluster] + alpha) / (n_docs - 1 + n_clusters * alpha),
)
log_numerator = 0
for i_unique in range(max_unique_words):
Expand Down

0 comments on commit ae44bc2

Please sign in to comment.