Skip to content

Commit

Permalink
Fix TfidfTransformer.
Browse files Browse the repository at this point in the history
  • Loading branch information
csadorf committed Feb 9, 2023
1 parent 78bbe59 commit a1b804d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cuml/feature_extraction/_tfidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def fit(self, X) -> "TfidfTransformer":

return self

@cuml.internals.api_base_return_any_skipall
@cuml.internals.api_base_return_array()
def transform(self, X, copy=True):
"""Transform a count matrix to a tf or tf-idf representation
Expand Down Expand Up @@ -238,7 +238,7 @@ def transform(self, X, copy=True):

return X

@cuml.internals.api_base_return_any_skipall
@cuml.internals.api_base_return_array()
def fit_transform(self, X, copy=True):
"""
Fit TfidfTransformer to X, then transform X.
Expand Down

0 comments on commit a1b804d

Please sign in to comment.