We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 092ceae commit ae44bc2Copy full SHA for ae44bc2
tweetopic/_prob.py
@@ -92,8 +92,7 @@ def _cond_prob(
92
# I use logs instead of computing the products directly,
93
# as it would quickly result in numerical overflow.
94
log_norm_term = log(
95
- (cluster_doc_count[i_cluster] + alpha)
96
- / (n_docs - 1 + n_clusters * alpha),
+ (cluster_doc_count[i_cluster] + alpha) / (n_docs - 1 + n_clusters * alpha),
97
)
98
log_numerator = 0
99
for i_unique in range(max_unique_words):
0 commit comments