Skip to content

Commit

Permalink
additional typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Nov 29, 2024
1 parent 687e40d commit 29ee185
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions skrub/_text_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ class TextEncoder(SingleColumnTransformer, TransformerMixin):
You can find more options on the `sentence-transformers documentation
<https://www.sbert.net/docs/pretrained_models.html#model-overview>`_.
The default model is a shrinked version of e5-v2, which has shown good
The default model is a shrunk version of e5-v2, which has shown good
performance in the benchmark of [1]_.
n_components : int or None, default=30,
The number of embedding dimensions. As the number of dimensions is different
accross embedding models, this class uses a :class:`~sklearn.decomposition.PCA`
across embedding models, this class uses a :class:`~sklearn.decomposition.PCA`
to set the number of embedding to ``n_components`` during ``transform``.
Set ``n_components=None`` to skip the PCA dimension reduction mechanism.
Expand Down Expand Up @@ -395,7 +395,7 @@ def get_feature_names_out(self):
def __getstate__(self):
state = self.__dict__.copy()
# Always dump self._cache_folder because it is overwritten when the model
# is loaded, and it shows an absolut path on the user machine.
# is loaded, and it shows an absolute path on the user machine.
# However, we have to include self.cache_folder in the serialized object
# because that is a parameter provided by the user.
remove_props = ["_cache_folder"]
Expand Down
2 changes: 1 addition & 1 deletion skrub/tests/test_column_associations.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_column_associations(df_module):

def test_infinite(df_module):
# non-regression test for https://github.com/skrub-data/skrub/issues/1133
# (colum associations would raise an exception on low-cardinality float
# (column associations would raise an exception on low-cardinality float
# column with infinite values)
with warnings.catch_warnings():
# pandas convert_dtypes() emits a spurious warning while trying to decide if
Expand Down

0 comments on commit 29ee185

Please sign in to comment.