Skip to content

Commit ae44bc2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 092ceae commit ae44bc2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tweetopic/_prob.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ def _cond_prob(
9292
# I use logs instead of computing the products directly,
9393
# as it would quickly result in numerical overflow.
9494
log_norm_term = log(
95-
(cluster_doc_count[i_cluster] + alpha)
96-
/ (n_docs - 1 + n_clusters * alpha),
95+
(cluster_doc_count[i_cluster] + alpha) / (n_docs - 1 + n_clusters * alpha),
9796
)
9897
log_numerator = 0
9998
for i_unique in range(max_unique_words):

0 commit comments

Comments
 (0)