Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BM42 #2075

Closed
wants to merge 3 commits into from
Closed

BM42 #2075

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
testing something
MaartenGr committed Jul 6, 2024
commit 4a9d7ea65bd6563cdc3dbb736a132c05093018f5
2 changes: 2 additions & 0 deletions bertopic/vectorizers/_ctfidf.py
Original file line number Diff line number Diff line change
@@ -85,6 +85,8 @@ def fit(self, X: sp.csr_matrix, multiplier: np.ndarray = None):
if multiplier is not None:
idf = idf * multiplier

self.idf_ = idf

self._idf_diag = sp.diags(
idf,
offsets=0,