Skip to content

Commit

Permalink
entropy docstring updated
Browse files Browse the repository at this point in the history
  • Loading branch information
maximtrp committed Aug 19, 2021
1 parent 3a05e37 commit 04a3a67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bitermplus/_metrics.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ cpdef entropy(
double[:, :] p_wz):
"""Renyi entropy calculation routine [1]_.
Renyi entropy can be used to estimate the optimal number of topics.
Renyi entropy can be used to estimate the optimal number of topics: just fit
several models with a different number of topics and choose the number of
topics for which the Renyi entropy is the least.
Parameters
----------
Expand Down

0 comments on commit 04a3a67

Please sign in to comment.